Add detail of the implementation of the new sleep functionality.