Added sleep support