Use usleep() in place of sleep()