The modern version of the ketogenic diet (or keto diet for short) originated in the 1920s as a way to treat epilepsy. Over the past few years, however, there’s been a noticeable increase in popularity of this diet among people looking to get fit — and probably for good reason.

This low-carb, high-fat diet forces you to use ketones for energy instead of glucose from carbohydrates. This, in turn, accelerates fat burning to help you lose weight quickly.

Though you aren’t completely cutting out carbs on the keto diet, the significant reduction in this nutrient can cause major cravings. Your body wants what it can’t have. In the case of this particular diet, that means limited intake of starches, fibers, and sugars.

So, it’s no surprise sugar cravings are a big hump to get over. To help you adjust, or if you’re just craving an old favorite but are trying to keep it keto, give this simple root beer float recipe a try. It tastes great and you won’t have to break your diet in the process. That’s what we call a win-win!

How to make your own keto-friendly root beer float

Step 1: Get your hands on some sugar-free root beer. Zevia is a good option.

Step 2: Pour in a little heavy cream. You can even freeze it to get that full-on ice cream effect.

That’s it! Now you can enjoy the taste of a classic root beer float and stay in ketosis at the same time.

Emily Rekstis is a New York City-based beauty and lifestyle writer who writes for many publications, including Greatist, Racked, and Self. If she’s not writing at her computer, you can probably find her watching a mob movie, eating a burger, or reading a NYC history book. See more of her work on her website, or follow her on Twitter.