Generator based flow-control