Yes, an input specification might well be a preferable approach; I will follow your advice and see how it turns out; thanks for your help.