Update code to process archive