Make recursions async, make recursion cap configurable