Thousands of tourists stranded for days due to COVID-19 lockdowns on the Chinese resort island of Hainan got a glimmer of hope Sunday as authorities signaled they could soon return home, but only after local approvals.

Provincial authorities announced that commercial flights for domestic passengers out of Sanya, a popular tourist spot on Hainan’s southern tip, would begin their orderly resumption Monday, according to a statement on the city’s WeChat account. However, travelers can fly out provided there have been no new cases in their tour groups and hotels within the past seven days.

At a news conference on Sunday, Shanghai authorities said those leaving Hainan will be quarantined at home for three days and then they will need to monitor their health for the next four days.