Using uint instead of enum for preference.