Implemented create_histograms methods.