Add base event handler.