Added support for compression. Using gzip only.