Added an enum helper.