Added a flag to disable profiling.