Thread handling (27/29)

Thread handling