Switching to pausing and resuming flushing instead of callbacks because that is way simpler yo