Add automatic compression mode