Add option to print histogram