Tools for Optimal Flow