Framework to handle flow controls