Added Sleep and change checking