Adding ability to plot histograms