Added profiling.