Added code to update an alarm.