[IMP] Code refactoring, NewFlowTask()