Better profiling script.