Tested everything by myself. Works.
Added extremum temperature. Not tested