Added selectPivot