Add histogram support