Performance monitor refactoring.