Split out quaternion code...