Made the plugin functional.