Early stages of histogram