Profiling and refactoring.