Added thread_start() and thread_stop()