Fix recursion = log(n) idea.