Adding code for enumerations.