Made a variable local to only function it is used in.