A study from Microsoft’s research organization analyzed anonymized data on people’s online activities and sleep behavior to show how sleep quality impacts our ability to type queries on a search engine and click on the results, reports Microsoft’s Next blog.

“When you don’t sleep well, it affects your cognitive performance, which means your work performance and lots of other things,” said Tim Althoff, who led the research during a summer 2016 internship with Microsoft’s research organization in Redmond, Washington.