Flipped the logic of scope so that zero is the final depth. This is so that we can grow a memo from large numbers downwards