Add support for compression.