Add define for SetThread