The script is completed and functions correctly