Changes to sleep();