Added stepper control for number of recursions.
Merge branch 'ai'