Added logging for sleep