Compression functionality mostly complete