Histogram stuff added