   # Event Handlers                                                             |
   # ============================================================================
 
-  mergeLines: ->
+  mergeLines: (lines) ->
+    newLines = @state.mergedLines.concat(LogLines.merge lines)
     @setState
-      mergedLines: LogLines.merge @props.viewingInstances.map (taskId) => @state[taskId]
+      mergedLines: newLines
 
   moreToFetch: ->
     _.some(@props.logLines, (logLines) =>


  fetchNext: ->
    promises = []
    for logLines in @props.logLines
      promises.push(logLines.fetchNext())
    Promise.all(promises).then =>
      @mergeLines()


  fetchPrevious: (callback) ->
    for logLines in @props.logLines


  getInitialState: ->
    @state =
      mergedLines: []

  componentWillMount: ->
    # Get the task info
