I'm wondering if it's time to move to something like Python to make the script more robust + portable? Will require a re-write. Not urgent, but something to think about.