Adding Enum helper function.