Added the possibility to do diagnostics histograms.