Finalized the script.