Rename 'calculateDepth' to 'depth'