Added ktotemps fxn