Added reference value calculation.