New version of SavePrimitive()