That's exactly what I did in the end. But it's been an educational journey through generic functions and type handling, so I'm glad for it. Thanks again.