Implementing depth