Add depth() get function