Added some pipes and started the flow detection algorithm