Added support for generating enum values.