works great

i was writing something similar and thought I would check the exchange, this does pretty much exactly what I wanted so well done