     return unless @started
     inPorts = @inPorts.ports or @inPorts
     inPort.clear() for inPort in inPorts
-    @bracketContextIn = {}
+    @bracketContext =
+      in: {}
     callback = =>
       @started = false
       @emit 'end'

    @ordered = options.ordered ? false
    @autoOrdering = options.autoOrdering ? null
    @outputQ = []
    @bracketContextIn = {}
    @activateOnInput = options.activateOnInput ? true
    @forwardBrackets = in: ['out', 'error']


    if @inPorts[port].isAddressable()
      portname = "#{port}[#{idx}]"
    # Ensure we have a bracket context for the current scope
    @bracketContext.in[portname] = {} unless @bracketContext.in[portname]
    @bracketContext.in[portname][scope] = [] unless @bracketContext.in[portname][scope]
    return @bracketContext.in[portname][scope]

  addToResult: (result, port, ip, before = false) ->
    if port.indexOf('[') is -1
