Functional update!

The script now runs and does what it needs to!