A method of and system for heating and/or cooling a fluid, the method comprising moving the fluid through a secondary side of a heat exchanger and controlling the temperature of a primary side of the heat exchanger such that the temperature of the primary side of the heat exchanger is maintained substantially at a determined temperature interval from a reference temperature which is a function of at least one of: a temperature of an inlet to the secondary side and a temperature of an outlet of the secondary side.