Added some timers for profiling