Adding initial support for performance counters.