Added saving temperature to file