Update to archive code