Moving the version check to the front of the script.