Add rmax for the compression option