Added support for enumerations.