- Fixed imports
- Fixed value offset calculation in getDepth()
- Fix and constify getDepth()