Sleep and camera fixes