Improved the archive script.