Moved and integrated the exiting threads.