Added prototype for recursive function.