Allow for gzipped input and output