           when "Statistics" then new_tool = params.dashboard.createTool Statistics, options
           when "WWT" then new_tool = params.dashboard.createTool WWT, options
 
-        console.log 'NT: ', new_tool
         new_tools.push new_tool
 
         if _.isUndefined tool.bind_options.params

      for new_tool in new_tools
        # Set settings
        toolWindow = new_tool.el.closest('.window-container')
        toolWindow.find(".data-sources [data-source=#{new_tool.bindOptions.type}]").click()
        toolWindow.find(".source-choices").val(new_tool.bindOptions.source)
        toolWindow.find(".data-points input[name=params]").val(new_tool.bindOptions.params)

  # Helpers
  getZIndex: (tool) ->
    z_index = if _.isNaN(parseInt(tool.el.css('z-index'))) then 0 else tool.el.css('z-index')
    

module.exports = State
      new_tools = []

      # Normalize z-index
      lowest_z_index = (_.min data.tools, (tool) -> tool.z_index).z_index
      _.each data.tools, (tool) -> tool.z_index -= lowest_z_index

      # Build initial state
      for tool in data.tools
