Add histogram support to client