Made the archive input slightly more efficient