FlowAlgorithm changed to header