         for occurence in occurences
             @addAlarmCounter alarm, occurence
 
+
+    # setup a timeout to call handleNotification at
+    # triggerDate
     addAlarmCounter: (alarm, triggerDate) ->
 
         now = new tDate()

    constructor: (@timezone, @Alarm, @notificationhelper) ->
        @fetchAlarms()

    fetchAlarms: () =>
        @dailytimer = setTimeout @fetchAlarms, oneDay
        # We load the alarms for the next 24h
        @Alarm.all (err, alarms) =>
            @addAlarmCounters alarm for alarm in alarms

    clearTimeouts: (id) ->
        if @timeouts[id]?
            clearTimeout timeout for timeout in @timeouts[id]

            @timeouts[alarm._id] ?= []
            @timeouts[alarm._id].push setTimeout (=> @handleNotification alarm) , delta


    # immediately create the Notification object
    # and/or send Email for a given alarm
    handleNotification = (alarm) =>

        if alarm.action in ['DISPLAY', 'BOTH']
