Removed debug hack for sleeping