Code to generate config files.