Correctly flushing on large batches