Added support for histograms.