Cookies, upon donuts, upon farewell cakes for employees. Alcohol at happy hour. The sweet and salty treats never seem to end at work, so how in the world are you supposed to maintain a healthy diet?

Here are a few things to keep in mind if this is your mission.

Don’t wait until you’re hungry to figure out lunch

If you want to make healthy decisions, it might be too late by then.

Ron Friedman, Ph.D., a psychologist, author and founder of ignite80, writes about this in the Harvard Business Review.

He notes that you should “make your eating decisions before you get hungry. If you’re going out to lunch, choose where you’re eating in the morning, not at 12:30 PM. If you’re ordering in, decide what you’re having after a mid-morning snack. Studies show we’re a lot better at resisting salt, calories, and fat in the future than we are in the present.”

Pack healthy things to look forward to

This might just help curb your temptation. You want to make sure you’ve packed a snack that you’ll actually want to eat when faced with more attractive options at work. Maybe you stopped at a farmers market on the weekend and picked up some fresh fruit that’s in season, or discovered something with the flavors you crave that won’t send you into a downward sugar spiral.

Marion Nestle, a nutritionist, researcher at New York University and author of What to Eat, told Allure about what you can pack for lunch.

“Bring in a few simple meals and snacks from home. Aim for a mix of lean proteins and fiber, which have been shown to increase the feeling of fullness: Stash a bag of mixed seeds, walnuts, and raisins in your drawer or keep low-fat string cheese or fruit in the fridge. Read More Here