 
     @displayFormat = @getConfig('event-watch.displayFormat', '$title: $time')
 
-    @update() # immediate initial update
-    setInterval((=> @update()), @refreshIntervalMiliseconds)
+    if !interval
+      interval = @refreshIntervalMiliseconds
+
+    if @timer
+      clearInterval(@timer)
+
+    @timer = setInterval((=> @update()), interval)
 
   # Do initial setup for this view.
   setupView: ->

      eventClasses = ['inline-block']
      if next - currentDate <= @warnThresholdMiliseconds
        eventClasses.push('warn')
      event = @createElement('span', eventClasses...)
      event.textContent = text


  attach: ->
    @statusBar?.addLeftTile(item: this, priority: 200) # far right side
    @setup()
    @update() # immediate initial update

  # Do all initial setup for view and configuration.
  setup: (interval) ->
    @setupView()

    @data = atom.config.get('event-watch.data')
