Added flag for if Flow is open or not