Changed saveTempInterval to long int