Also added gzip / deflate to the download function