Change the resource value.