Updated to use properties from a configuration file.