Add support for compressed output