Tail recursion elimination.