Add remove and add functionalities for flows