     @ordered = options.ordered ? false
     @autoOrdering = options.autoOrdering ? null
     @outputQ = []
-    @bracketContextIn = {}
+    @bracketContext =
+      in: {}
     @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
    @bracketContextIn[portname] = {} unless @bracketContextIn[portname]
    @bracketContextIn[portname][scope] = [] unless @bracketContextIn[portname][scope]
    return @bracketContextIn[portname][scope]

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

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