It took me a long time to accept the fact that adding structure and routine to my workday was not the equivalent of giving up the freedom of entrepreneurship that I had longed for throughout my years as an employee.

The idea of working from home had been a fantasy for so long that when that day actually came, I didn’t want to let go of my dream and accept the unplanned realities of this lifestyle. It almost felt like a failure, or a step backward to need rigidity in my day when my vision had always been so free-flowing and flexible.

So, naturally, I fought it.

Even though I’d “work” all day, I wasn’t working smart. I fell into the habits that most work-from-home-ers can relate to: I’d start my day, still in my pajamas…and sometimes that’s how I’d end my day (don’t judge me). I’d start my day checking email, Twitter, Facebook. Reading the “news.” I’d look at my to-do list and start working on something — but not long after I’d find all kinds of things around the house that I just “had to do.”

At first it was fun and exciting, but distractions are as endless as you allow them to be. And bad habits form quickly.

Distractions aside, there was no real rhyme or reason to my workflow. The not-so-fun (but necessary) stuff kept getting neglected. I found myself constantly switching between different tasks and projects, never really making much progress on any one thing.

Trying to balance client work with our own SaaS products (HookFeed and Minimalytics) was hard enough — but I was also learning to code (which is insanely time consuming), starting to blog (which was a scary new frontier for me), and building relationships with other SaaS folks (I knew no one when I started). The list goes on. And I was spread thin.

Time management became an oxymoron and everything suffered. I felt like I was swimming in a sea of tasks with no direction or end in sight. I started neglecting time with my friends to work at night and on weekends. I stopped exercising because I felt guilty about the time it took during the day and was too exhausted at night. I was losing my war against structure.

I thought I was avoiding routine but had fallen into one anyway. A bad one. When I finally admitted defeat and began taking baby steps toward building structure and productive routines, I got my lightbulb moment that changed EVERYTHING:

Structure is not the enemy to freedom, it’s the gateway.

I also realized it’s f#%*ing hard. But like anything you want to get better at, you practice, you allow yourself to fail, you try different tactics until you find what works for you, and you practice some more.

Here are 10 of the the most useful tactics that help me structure my days (and stick to it):

1. Wake up at the same time every day — and do it early.

If waking up early isn’t your thing, set your alarm for 5 minutes earlier than normal. Get used to it. Then 5 more minutes. Your body adapts quickly — give it a shot.

2. Have a routine for the first thing(s) you do when you wake up.

It may sound insignificant, but there’s a compound factor to starting your day off with small routines that sets you up to stay on track for the rest of the day.

3. Eat breakfast.

Seriously.

4. Do your most important task of the day first.

Hint: That’s not checking email, Facebook, or Twitter. If your most creative / focused time is in the morning (like it is for me), use your first two hours to write, code, design, or work on solving a problem that’s been lingering. Your focus will fade throughout the day, so save the menial tasks for the afternoon.

5. Chunk your time into one- to two-hour blocks.

It’s not realistic to think that you can focus on something all day long. Especially anything creative. So break your day into one- or two-hour chunks with breaks in between. Have a goal for each sprint and try to hit it.

Rule: When you’re in a sprint do not check email, social media, etc. This is dedicated time. You’ll be blown away at what you can get done in just a couple hours.

Tip: Try a little iPhone app called Countdone to make a game out of it.

6. Plan breaks.

In between your focused sprints, go on Twitter and Facebook. Watch random YouTube videos if you want. Do the dishes. Run an errand. You no longer have an excuse to step away (physically or mentally) from focused work time because these breaks are already planned into your day. You’re going to do these things anyway — so be smart about it.

7. Plan your workout time — stick to it.

Something funny happens when you say “I’ll workout ‘later.’” It transforms into a promise that you won’t. Pick any time during the day that works for you and stick to that exact time. Set a meeting for it on your calendar. When X:00 hits, stand up and go.

Tip: I plan to work out mid-morning after my first two-hour sprint — it helps if I already have my workout clothes on.

8. Have food in the house.

When your fridge is empty at noon, guess what you’re going to do: Think about what to go get for lunch. Debate what sounds good, waste time deciding, then spend time going out, and eating something that’s probably not very healthy. By the time you’re back home ready to work again, you’ve killed a lot of time. Be a grownup and stock your fridge.

9. Get out of the house.

Find your “spot.” Local coffeeshop. Co-working space. Somewhere out of the house with wifi. A change of scenery does wonders for a fresh batch of concentration.

10. Call it a night.

You’re not producing good work when you’re tired (despite what you tell yourself). And you’re burning yourself out in advance of the next day. Know when it’s time to call it a night and start fresh in the morning.

This post was originally published at Medium and is reprinted here with permission.