Updated to use properties from a file.