Hi Keith,
I was not able to answer earlier because of different time zone. It's good to know you found the solution, but in my opinion it can implemented in better way.
I see two situation when the used approach will not work properly:
The comparison…