Recursive call will lead to performance issues

