At the study hospital, Oslo University Hospital Rikshospitalet, patients undergoing thoracic surgery will already have several routes of temperature monitoring as part of standard procedure. Before cardiopulmonary bypass bladder temperature is normally used as a reference for core temperature. After cardiopulmonary bypass is established, temperature is monitored directly in the circulating blood, hence reflecting core temperature.