Whether you’re working from home or you just use your laptop on a recreational basis, the last thing you want to have to worry about is your device dying on you and you having to purchase a new one in a rush. To keep this from happening, it’s wise to learn how you can properly maintain your hardware and software for as long as you need.

To help you in doing this, here are three ways you can extend the life of your laptop.

Keep It Clean

One of the best things you can do for your laptop but one thing that many people forget or overlook is keeping their laptop clean.

According to Lori Grunin, a contributor to CNET.com, it’s very easy for dirt, dust, debris, and other items to get stuck in all the holes and ports in your laptop. These things can cause issues when you need to use those ports or are trying to get your speakers or microphone to work as well as it should. To combat this, you should regularly clean off all visible parts of your laptop. Something as simple as a can of compressed air and a cotton swab can take care of most of the filth that accumulates on a laptop. But , if your laptop has a touch screen or a touchpad, make sure you care for that area only with items that won’t harm it.

Keep It Cool

For both the internal and external components of your laptop, it’s vital that you do all you can to keep things cool. If your laptop gets too hot, it can start to fry your battery and make all your internal processing components work extra hard to not only function that way they ordinarily would but to also try to keep everything cool at the same time.

If you notice that your laptop is getting too hot, Tyler Lacoma, a contributor to Digital Trends, advises that you take out the battery if it’s easily accessible. This will help to prolong its life. Additionally, try to make sure that you’re not keeping your laptop on your lap, since this can block the fans that help keep your device from overheating.

Try Hibernate Mode

Laptops often start experiencing issues when they’ve been pushed too hard for too long.

To keep this from happening to your laptop, Alan Henry, a contributor to LifeHacker.com, recommends that you try to put your laptop in hibernate mode whenever you can. This will enable everything to shut off its power, which will help you save your battery life as well as giving everything else a break.

If you want your laptop to last you for quite a while, consider using the tips mentioned above to learn how you can prolong its life.