Implementing the plugin