Dynamic recursion levels