Fixed a few typos that preventing the script from actually running.