Removed some profiling code