Added histogram support