Rewrite of the plugin.