Fixed bug and sat up the plugin to run standalone