Controlling the temperature by direct heating or cooling adding a temperature modifying medium to the reactants