Compression function is implemented.