Add events to the plugin.