Extend to do logarithmic binning