Added options for changing compression and to force the output format.