Adding histogram support