Working Pllugin

Updated to complete the plugin.