Implemented phase rotation