Remove Thread1 function