Working on count dedup
Reduce amount of flushes