Performance Counters + minor fixes.