Updated maxFlow