When searching for a job, it’s easy to get disheartened. You send out resume and after resume and often don’t hear anything back, and even if you already have a job, the steady stream of false leads and dead ends is enough to make anyone question his or her worth. But don’t do it. As Gina Belli writes in a post for PayScale, maintaining a positive attitude will boost your chances of finding a new gig. Scroll down to read her “3 Tips for Keeping Your Spirits Up During a Lengthy Job Search.”

1. Treat It Like a Job — If you’re looking for work on a full-time basis, set hours as if it were a proper job. If you have a schedule, you’ll likely stick to it, and as Belli says, it’s sometimes helpful to use a library or some other public place as a workspace. If you already have job and are looking in your spare time, figure out what hours you’ll devote to the task. It’ll keep you focused and increase your chances of success.

2. Take Breaks — The job-search process tends to be an all-consuming thing, but as Belli writes, it’s crucial to allow yourself little breaks. It’s good for your emotional and mental well-being, and since you’ve set a schedule and know you’ll be back in the game the next day, you don’t have to feel guilty about slacking.

3. Be Realistic About Timeframe — If you’re looking to find a new job quickly, Belli has some bad news. According to an article she cites by career coach Marc Miller, it generally takes professionals “a minimum of six months to two years” to find the right gig. And “right” is a key word for coming to terms with this duration. After all, the idea is to land someplace you feel valued and fulfilled, so be realistic about the possible timeframe and don’t beat yourself up if things don’t move super fast.