Made perf counter changes

Also has ArgumentOutOfRange issue