Adding alarms in loop