Refactoring to use a configuration file.