Added profiling support.