Don't wake up the device with the alarm. Also corrected a number of timing issues.