Renamed sleeping function.