Neat!  I wish I had known this a few weeks ago. I needed to do this and found a more complicated solution.