Histogram builder.