Reworked the configuration editing to preserve the original configuration file.