Implement getStat, just the recursion step