Made perf counter changes

Should either depend on member fields or pass as parameters to the method, not both