Atmosphere during thermal treatment