     tree = new TraceTree(
       @treeIdCount++,
       @getNewTreeColor(),
-      "Tree#{('00'+(@treeIdCount-1)).slice(-3)}",
+      @TREE_PREFIX + ('00'+(@treeIdCount-1)).slice(-3),
       (new Date()).getTime())
     @trees.push(tree)
     @activeTree = tree


      if @firstEdgeDirection
        @flycam.setSpaceDirection(@firstEdgeDirection)


  benchmark : (numberOfTrees = 1, numberOfNodesPerTree = 10000) ->

    @stateLogger.updateTree(tree)


  generateTreeNamePrefix : (tracingType, taskId) ->

    user = "#{app.currentUser.firstName}_#{app.currentUser.lastName}"
    # Replace spaces in user names
    user = user.replace(/ /g, "_")

    if tracingType == "Explorational"
      # Get YYYY-MM-DD string
      creationDate = new Date().toJSON().slice(0,10)
      return "explorative_#{creationDate}_#{user}_"
    else
      return "task_#{taskId}_#{user}_"


  getTree : (id) ->

    unless id
