Updated new sleep mode functionality