In your 20s, funding your 401(k) might have sounded like a good goal … for your 30s. Now that your 30s are here, you might be nervously noticing the countless articles on the virtues of investing in your 20s.

This isn’t one of those articles. Getting started now gives you plenty of reasonable paths to build a healthy $1 million by retirement.

Here are five steps to help you achieve that goal.

1. Start with your 401(k). Your 20-something self was right about the 401(k) part: That’s the first place most people should save for retirement.

There are many reasons why, but we will hit just the high points:

A 401(k) has a high annual contribution limit of $18,000. Contributions get swept into the account directly from your paycheck — like magic.

Many plans, particularly those at large companies, offer access to inexpensive R share classes of mutual funds. (The “R” stands for retirement, but it could also stand for “reduced price.”)

Perhaps best of all, many employers will match your contributions, at least up to a cap. That’s free money you won’t find through other offerings.

2. Supplement with a Roth IRA. Once you’re capturing that full 401(k) match, you should take a second look at your 401(k)s investment options. Yes, they are often inexpensive, but not always — and some plans tack on administrative fees. If your plan is too costly, you are better off directing any additional contributions this year to the second-best place for your retirement savings: an individual retirement account, such as a Roth IRA.

With a Roth IRA, your contributions go in after tax, which means no tax in retirement. Your money also grows tax-free in a Roth IRA.

That kind of tax diversification is why it’s a good idea to combine a 401(k) with a Roth IRA, if you meet the income eligibility rules for a Roth. (Of note: Some companies are offering a Roth version of the 401(k) that — again, if your plan fees are low — can be the best of both worlds.)

The downside is that IRAs allow you to contribute only $5,500 in 2017. If you max that out, go back to your 401(k) until you hit its $18,000 ceiling.

3. Take as much risk as you can stomach. Risk is one reason there’s such emphasis on investing when you are young — young people have a long time horizon before retirement, which means they can worry less about short-term volatility. That allows them to accept risks that should lead to higher average returns over the long term.

But with 30 or so years before retirement, you, too, are young. And you should be taking risks, investing the vast majority of your long-term savings — 70 percent to 80 percent, at this age — in stocks and stock mutual funds.

4. Seek inexpensive diversification. Investing becomes less risky if your investments are diversified, which means no, you should not dump all your available cash in the Snapchat IPO.

Here are two tricks to diversification: Having enough money to spread around. Using index and exchange-traded funds.

Being older can help a great deal with the first item, as the years between 20- and 30-something probably netted you a few salary increases. As for the second item, funds like these track an index: A Standard & Poor’s 500 fund, for example, tracks the S&P 500, which includes 500 of the biggest companies in the U.S.; the index fund pools your money with other investors to buy shares of those stocks.

The performance of the fund, then, virtually mirrors the performance of the index — less the fees you pay for the convenience of the fund. Aim to pick funds with fees less than 0.5 percent.

The wide assortment of stocks in index funds makes you somewhat diversified. To diversify even further, you can put together several funds — for example, one that gives you exposure to international stocks, and one or two that invest in small and medium U.S. companies.

If all of that sounds too hard to manage, you can pay to have someone do it for you, or even some thing: A roboadvisor, which uses a computer algorithm to build and manage your portfolio for a small annual fee, is a good choice at this stage.

5. Take off the retirement blinders. Retirement is the universal long-term goal, but it’s often treated as the only goal. You can save and invest for other things, and in your 30s, those other things tend to come up more: college for your kids (if you have them), vacations (perhaps away from those kids), or a down payment for a house (if you would like to realize the dream of unclogging your own gutters one day).

The trick is to prioritize these goals. Retirement should come first, but you can divert money into these other goals by saving more when you get a raise, stashing away windfalls and taking advantage of changing expenses.

Arielle O’Shea is a staff writer at NerdWallet, a personal finance website.