Added profiling to more methods.