Initial commit of plugin code