Add a framework to manage the number of running actions.