Depth pruning