I wrote the script quickly, so it is inconsistent around formatting conventions. I.e. uppercase & lowercase variables. Review the code, so it conform to these conventions, to improve readability.