Removed beta recursion.