Adds ap and jam to .pairs