Planning the flow