Cleaner code to read and write the archive.yml file.