Allow calling code to set the compression flag.