Added histogram plotting