   , 500
 
   inst.network.on 'data', (data) ->
-    return if data.id.indexOf('STREET') is -1
+    return if data.id.indexOf('Street') is -1
     console.log data.id, data.data
 
   setTimeout ->

fbp = """
INPORT=Pulsate.COLORS:COLORS
INPORT=Pulsate.STEP:STEP
INPORT=StreetLights.FLOORRED:RED
INPORT=StreetLights.FLOORGREEN:GREEN
INPORT=StreetLights.FLOORBLUE:BLUE
Pulsate(ingress-table/Pulsate) COLORS -> COLORS Convert(ingress-table/ConvertStreetLight)
Convert STREET1[0] -> REDONE StreetLights(runtime/StreetLights)
Convert STREET1[1] -> GREENONE StreetLights
Convert STREET1[2] -> BLUEONE StreetLights
Convert STREET2[0] -> REDTWO StreetLights
Convert STREET2[1] -> GREENTWO StreetLights
Convert STREET2[2] -> BLUETWO StreetLights

"""

loadGraph = (graphDef, callback) ->
  noflo.graph.loadFBP graphDef, (err, graph) ->
    return callback err if err
    loader.listComponents (err) ->
      return callback err if err
      console.log 'Registering test graph to NoFlo'
      loader.registerGraph 'ingress-table', 'SimulateStreets', graph, (err) ->
        return callback err if err
        console.log 'Loading the test graph as component'
        loader.load 'ingress-table/SimulateStreets', (err, inst) ->
          console.log 'Loaded the test graph. Waiting for ready state'
          return callback err if err

