Change output to a pair rather than modifying a size_t pointer.