Added support for using enums.