Changes to save hostname to the config.