Unless I'm missing something, the code using `oldest` can instead use `ptr` and we can avoid the extra variable