Coded the base for the plugin.