Updates the script.