Abstraction for compression.