Added scoping, local variables.