Initial commit - unaltered from original plugin