Removed dependency to memory profiler.