Updated the plugin API