Good calling depth maximum for this function. Its within 80% of the global cashing scheme I used at first. It should be pretty easy to convert to different kinds of functions and memory constraints. MvH Dan Andersson