Support for plugin_init func