SPED3 rotation logic improved