Work on writing the archive