Completed the script