Added getMaxDepth() getMinDepth() support.