Replacing undefined variables.