Working version of plugin.