Implement the generator part of the plugin