Code of the plugin