Updates histograms.