Write the plugin