Added profiler for debug