I don't get why you added another flush? The flush is supposed to be between `INITIALIZE` and `COMPLETE` events, not after each one if I'm not wrong.