Finished the plugin using my runScriptAndReturnResult method.