Use `@pair` instead of saving to two separate values.

This makes code somewhat shorter.