Removed currDepth