Modify writing config to append configurations.