Too many recursive procedure calls.

There is a limit to the number of times a procedure can call itself unless you use tail recursion has no limit. To avoid this error, rewrite the procedure(s) to use tail recursion.