Implemented phase rotation.