Why reinvent the wheel? Maybe next time I can do a search on what I’m constructing.
(Both links open in a new window.)
In fact, they solved some other questions I had on them. So there you go. Thank you, Ian, for pointing out that I’m a twit. :)