[Commits] b7b3b6b44a5: Histogram code cleanup and fixes