Added GetEnum method.