Used the better rotation function