Refactored performance counters. Looking decent now.