Modified histogramming to use optimizing batcher.