Version with support for gzip and zip.