Added a lookup method for enum values