Finished (inefficient) pair loop