Fancier network flow.