. . . "Like I said I have not been able to test it so there may be some issues, in particular with the scope of the elementsQueried var and how that is handled with the recursion." .