Added comp.hist function