Fix the profiling script to make more sense.