     else
       @_loadCollectionWithFirstLayer($.extend({}, options, include: include, success: ((firstLayerCollection) =>
         expectedAdditionalLoads = @_countRequiredServerRequests(include) - 1
+
         if expectedAdditionalLoads > 0
           timesCalled = 0
           @_handleNextLayer collection: firstLayerCollection, include: include, error: options.error, success: =>

window.Brainstem ?= {}

class Brainstem.DataLoader
  constructor: (options = {}) ->

    collection

  _loadCollectionWithFirstLayer: (options) =>
    cl = new Brainstem.CollectionLoader(storageManager: @storageManager, successFunction: @_success)
    cl.load(options)

  _handleNextLayer: (options) =>
    # Collection is a fully populated collection of tasks whose first layer of associations are loaded.
