The pandemic showed how volatile 401(k)s can be. Here’s how you can diversify your asset mix before retirement

Our mission to help you navigate the new normal is fueled by subscribers. To enjoy unlimited access to our journalism, subscribe today.

When the market descended into the fastest bear market on record in March, many watched in horror as 401(k) retirement accounts shed thousands of dollars seemingly overnight. For those at the start of their careers, there was the knowledge that time is on their side. But for savers nearing retirement age, a volatile shake-up in the markets can be more than a little jarring with less time on the clock.

“The first thing I would say is, don’t get emotional. Stay calm. Markets tend to recover, but let’s look at how not to get burned when the market dips when you’re closer to retirement,” offers Steve Kruman, a financial planner and investment adviser at Bryce Wealth Management. “When the market gets up to a level you’re comfortable with, then you have to have a volatility protection program of some sort,” he tells Fortune.

Indeed, for many soon-to-be retirees, the importance of diversifying your retirement plan is perhaps more important than ever.

Even in choppy markets, the age-old advice of “stay the course” is key for people closer to retirement—but perhaps with a twist: “I almost want to add into that comment not necessarily just ‘stay the course’ but revisit your course,” Jennifer Kruger, a CFP, vice president, and branch leader at Fidelity Investments in New York, tells Fortune. “Revisit your plan, which includes your time frame, your stomach for the market, your other financial situation, and what needs may be changing in the next five years or so.”

While watching the markets take huge dives (and post similarly dramatic recoveries) can be unnerving, Rhian Horgan, the CEO and founder of retirement and financial planning platform Kindur, suggests keeping this in mind: “There are things you can control and things you can’t. Unfortunately we all know we can’t control what’s happening in the markets, so the question is, What are the things that are actually in your control?”

Assess your risk tolerance

This is Step 1.

When you’re younger, you’re likely heavily (if not wholly) invested in the stock market. But as you get closer to retirement, it’s important to reassess your risk tolerance and how you might want to diversify for the homestretch.

In general, experts say you should start thinking about your new plan for retirement around five to 10 years out from when you’d like to retire.

“When we say, ‘Become more conservative,’ you’re shifting from assets like stocks that tend to be more volatile: more ups, high highs, low lows, and you’re shifting to things that smooth out the roller-coaster ride,” says Kruger. “We shouldn’t be making bets at this point.”