Updating variable substitution