Over 7 days of testing, Mayo Clinic researchers found that with a dog in the bedroom, both the humans and the dogs slept reasonably well, reports The New York Times.

“This goes against the lore that you should have the dog sleep elsewhere,” and not in the bedroom, said Dr. Lois E. Krahn, the study’s senior author and a psychiatrist and sleep medicine specialist at the Center for Sleep Medicine at the Mayo Clinic. Her 6-year-old golden retriever, Phoebe, routinely sleeps on the floor in the bedroom — and in the colder months joins her and her husband on their bed. Both the dog and the people, she said, sleep fine.