Added events to base plugin class