Proper depth extraction