Added sleep mechanisms.