maxDepth renamed maxLevel