Added support for Gzipped input files