Made small changes to archive upload.