Implemented profiling utilities.