Initial commit of the plugin code copied from the project from which it originated