Beginnings of import code in main plugin... still needs refactor