Added new profiling routines.