Extended the thread control