Added histograms for BG estimation