Correctly find and assign the threads to archive.