First bits of code for compression and DPI