Added more event support to pluginLoader.