Replaced "enums" with classes.