Add event class.