Use an enum rather than a string to represent state event types.