Add the depth of an entity