Fix sleep behavior
Documentation