Compression function working.