Add event type parsing.