Adding sub-flow