Changed some names since "depth" wasn't really the right term.