     @extendData()
     @drawChart()
     @runNumber = @runNumber + 1
+    @notDone = @runNumber < 100
     console.log("Run number #{@runNumber}")
-    setTimeout(@tick, @tickLength) if @isRunning and @runNumber < 100
+    setTimeout(@tick, @tickLength) if @isRunning and @notDone
 
 window.RickshawStripChart = RickshawStripChart

    @isRunning = not @isRunning
    if not @hasStarted
      @start()
    if @isRunning
      @tick()
  
  start: ->
    @numCranes = Number($("#num_cranes").val())

  offset_param: null
  isRunning: false
  hasStarted: false
  notDone: true
  
  constructor: ->
    @values = []
