maxDepth must be less than current Depth, not less or equal