Integrated thermal control