Add support for gzipped input