Added thread_yield initial not working code