Added support for compressed files.