Working with 2 counters.  Reduce code in flush.