Profile the script