That doesn't look substantially less clear, so if it is faster I'm +1 to bring it in. Is it faster to pass the values to the inner functions as default parameters, rather than letting them find it in the enclosing scope? I can imagine that it would be. -- Martin