Thanks so much for writing and sharing this tool! I'm finding that the script crashes when the set of labels is empty. Looking at it now to see if I can fix it.