Updated alarm to check current time instead of using polling intervals.