Added sleep and wakeup for Doctrine Country.