Fixed bug causing alarm never to trigger.