Added options to disable compression.