Add recurse limit in analysis to avoid stack exhaustion