Forgive me, I didn't at first notice your additional comments on the code. I have now incorporated your comments on style; now I think I got it right and respectfully resubmit the patch. Please let me know if you have any additional feedback. Thanks, David