Implement Perf Counter, cleanup.