Added depth counter.