Make the list of phases be an enumeration.