Switch from usleep to sleep