Thanks for all replies. I need to practice much more pythonese.... In fact I don't think to understand all of your suggestions, so I'll need to go through them and decide what approach I am going to take. Thanks a lot!