Adds the plugin code