Implemented pivoting