Moved all of the configuration variables to the top of the script for easier access.