Rearrange (so tags can see main_depth()) [minor]