Add recursion functions to helper