Added support for compression.