Removed busy waiting for timer_sleep()