Second order temperature rescaling added