Fixed rotation function