Add ability to configure recursion limit