Added check to make sure that a configuration file exists.