Thank you to everyone who commented! I've refactored the code and I'm looking into "duck typing" to see if it fits this usage scenario. Thank you very much! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com