Nice!

Thanks for the snippet. Needed it for a project project. :)
Merge pull request #2 from BruceLampson/patch-1

Great!