Add scope to variables.