       filenameByKlass = {}
       for file in files
         beforeRequire = _.keys(@getRegistries())
-        # console.time(file)
         require(file)
-        # console.timeEnd(file)
         afterRequire = _.keys(@getRegistries())
-        addedKlass = _.difference(afterRequire, beforeRequire)
-        for klass in addedKlass
+        for klass in _.difference(afterRequire, beforeRequire)
           filenameByKlass[klass] = file
 
-      for __, klass of @getRegistries()# when klass.isCommand()
+      for __, klass of @getRegistries()
         @commandTable[klass.name] = spec = {
           name: klass.name
           file: filenameByKlass[klass.name]

  # -------------------------
  @init: (service, commandTable) ->
    {getEditorState} = service

    registerCommandFromSpec = (spec) ->
      {name, commandScope, commandName} = spec
      atom.commands.add commandScope, commandName, (event) ->
        vimState = getEditorState(@getModel()) ? getEditorState(atom.workspace.getActiveTextEditor())
        if vimState? # Possibly undefined See #85
          vimState.operationStack.run(name)
        event.stopPropagation()

    @subscriptions = new CompositeDisposable()

    @commandTable = require('./command-table')
    # @commandTable = null

    if @commandTable?
      console.log 'lazy strategy' unless atom.inSpecMode()
      for name, spec of @commandTable when spec.isCommand
        @subscriptions.add(registerCommandFromSpec(spec))
      @subscriptions
    else
      console.log 'non lazy strategy'
      files = [
        './operator', './operator-insert', './operator-transform-string',
        './motion', './motion-search', './text-object', './misc-command'

        }

      # serializeCommandTable(@commandTable)
      subs = registerCommandFromTable(@commandTable)
      console.timeEnd('register and gen-cmd-table') if isDevMode
      subs

    return readTableAndRegisterCommands()
    # return registerCommandOldStyle()
    # return registerAndGenerateCommandTable()

  registries = {Base}
  @extend: (@command=true) ->
