Pivot search implemented.