Making a small adjustment to the histogram building routine.