Added more profiling calls.