Add '--disable-metrics' cmdline opt and fix bug.