Fixing archive flag handling
Minor fix to compression code
More tweaks to compression