Changes scope of some variables.