     @units = options.units or [{name: "Second", rateUnit: 1000}, {name: "Minute", rateUnit: 60 * 1000}]
     @started = new Date()
     @panicMode = false
+    @paused = false
     @locallyLocked = 0
     @lastTick = -1
 

      res.json @toJSON()

    statsApp.get '/stop', (req, res) =>
      res.send 'Ok'
      @panicMode = true
      @_initiateSelfDestructionSequence()

    statsApp.listen port, ->
      console.log "Statistics is on port 7777"

    lockFailedMessages: @lockFailedMessages.toJSON()
    processingErrors: @processingErrors.toJSON()
    panicMode: @panicMode
    paused: @paused

  applyBackpressureAtTick: (tick) ->
    @lastTick = tick
    @paused or @panicMode or @messagesInProgress() is not 0

  messagesInProgress: () ->
    @messagesIn.count() - @messagesOut.count()
