Fixed Alarm and moved alarm logic from Compute to Alarm.