First working draft of the plugin.