Made the alarm more accurate

The old version had a chance of being off by 4 seconds.