Corrected the problem with the flowAppending, still needs to be checked, also the flowStoppped? function