This line and the rest of the function are unnecessary: `archive` has an optional parameter called `outputZip`, you should use that I think.