Made the plugin functionnal