   onLevelSessionsSync: ->
     return if @destroyed
     # console.log 'onLevelSessionsSync'
-    @instanceStats = averageLevelsCompleted: 0, furthestLevelCompleted: '', totalLevelsCompleted: 0, totalPlayTime: 0
     @memberStats = {}
     @userConceptStateMap = {}
     @userLevelStateMap = {}
-    levelStateMap = {}
     for levelSession in @levelSessions.models
       continue if levelSession.skipMe   # Don't track second arena session as another completed level
       userID = levelSession.get('creator')

      @loadCourseInstances() unless @courseInstances  # Find the next course instance to do.

    @render()

    # If we just joined a single-player course for Hour of Code, we automatically play.
    if @instanceStats.totalLevelsCompleted is 0 and @instanceStats.totalPlayTime is 0 and @singlePlayerMode and not autoplayedOnce
      autoplayedOnce = true
      @$el.find('button.btn-play-level').click()

  onAllCoursesSync: ->
    @findNextCourseInstance()


      @userLevelStateMap[userID] ?= {}
      @userLevelStateMap[userID][levelID] = state

    @conceptsCompleted = {}
    for userID, conceptStateMap of @userConceptStateMap
