Added sleep and shutdown