Added functionality for compressor.