Removed unused profiling code.