Hi Thanks for the quick reply. The offside rule, as I understand it from reading the python manual, is roughly what I want, yes. I will try and reimplement my scanner and see where that gets me. Regards, Jonathan.