Renamed pivot A and B to superior and inferior respectively.