     dataunit.getFrame()
     dataunit.getExtremes()
     
-    @setupHistogram(band)
-    
+    @computeStatistics(band)
     
   # Compute histogram using inline worker
-  setupHistogram: (band) ->
+  computeStatistics: (band) ->
     dataunit = @images[band].getDataUnit()
     
     # Set up message to pass to worker

      @histograms[band] = data.histogram
      @means[band]      = data.mean
      @stds[band]       = data.std
    ), false
    worker.postMessage(msg)
    
    console.log @histograms, @means, @stds
    
module.exports = FITSViewer
    @means = {}
    @stds = {}
    
    @container = document.querySelector("#examine .subject")
    @createBandButtons()
    @setupWebGL()
    
  createBandButtons: ->
    for band in @bands
      $("#examine .content-block").append("<button id='band-#{band}' class='band' value='#{band}' disabled='disabled'>#{band}</button>")
  
  addImage: (obj) ->
    band = obj.band
