Improved profiling scripts.