Added switchable compression