This needs a transpose if S is transposed