Use an enum for the compression method