Usable script but contains a bug in the tag display.  The tag will resolve to the name with the lowest collation, which means the value in that column will be arbitrary.
Merge branch 'master' of https://github.com/birdietwin/scripts