Added sleep task inspired by Ant's sleep task