Added in dynamic histogram sizing