   attach: ->
     @statusBar?.addLeftTile(item: this, priority: 200) # far right side
     @setup()
+    @update() # immediate initial update
 
   # Do all initial setup for view and configuration.
-  setup: ->
+  setup: (interval) ->
     @setupView()
 
     @data = atom.config.get('event-watch.data')


    @displayFormat = @getConfig('event-watch.displayFormat', '$title: $time')

    @update() # immediate initial update
    setInterval((=> @update()), @refreshIntervalMiliseconds)

  # Do initial setup for this view.
  setupView: ->

    currentDate = new Date
    events = []

    wasWarning = @hasWarning
    @hasWarning = false
    for title, times of @data
      # ignore missing titles and those starting with -
      if !title.length or title[0] == '-'
