I moved this to before we get into the landing pad, because otherwise, the iteration for frame 0 overwrites the value before we get to it in frame 1.
It is only needed when we get into the landing pad (e.g. the PR doesn't need it).