Changed scope to an enumeration.