Added simple profiling features.