Altered the timing mechanism to keep the clock running when the device sleeps
Fixes #2