Initial working version of the plugin