Add custom event class.