Added option allpairs.