Finishing the script.