In some cases, the max nesting level needs to be much deeper than 2000, set to 10000 for now