The parameter `$newArchive` was everywhere, but nowhere used, so I removed it.