Added recursion to scope