Added appropriate queuing
Tests working
Minor bugfix
exchanged to meet in a different manner AllocFlowFunction