AVG reworked

The compression type AVG now works again.