Cooling or heating of work