John is a financial analyst working for a pension fund that has liabilities maturing in 5 years. To manage risk and ensure that his portfolio can meet these future liabilities, he is considering using an immunization strategy. Immunization involves structuring a bond portfolio such that its duration matches the duration of the liabilities.
Given this context, what is the primary goal of an immunization strategy?