Now works with profiler