People in Beijing rushed to buy train and plane tickets out of the Chinese capital after the local government began easing travel restrictions for the first time since an outbreak that was discovered in mid-June.

Residents from areas of Beijing designated “low risk” will be allowed to leave the city without having to be tested negative for the coronavirus from July 4, Pan Xuhong, deputy director of the Beijing Municipal Bureau of Public Security said on Friday. Strict controls will remain on people from dozens of medium and high risk areas.

The change in regulations announced Friday make it easier for people from low risk areas to leave the city. However, local governments in other provinces get to decide whether or not people arriving from Beijing have to be tested or quarantined, and the rules vary across the country.