Refactored to implement targetTempF variable.