Made the target temperature a local variable.