Added internal profiler