Dynamic populates an enum