Finish the script