Implemented length parameter in Flows