Trying to get the bulk structure of the script worked out.
I'd like to keep this to one big-ass script to make it easier to run
from a disc or wherever.