Added basic regression fitting for temperature