A Swedish study suggests that people with sleep apnea are more likely to stick with treatment when they use a built-in humidifier, reports Reuters.

Apnea that isn’t properly treated has been linked with excessive daytime sleepiness, heart attacks, heart failure and an increased risk of premature death. Often, patients are prescribed treatment with masks connected to a machine that provides continuous positive airway pressure (CPAP) that splints the airway open with an airstream so the upper airway can’t collapse during sleep.

To see what factors might influence whether patients stick with this cumbersome treatment, researchers followed 16,425 people who were prescribed CPAP between 2010 and 2017.