Change variable scope