Tesla is preparing to resume production at its Shanghai plant on Monday following a three-week stoppage, after receiving approval from local authorities, two people familiar with the matter told Reuters.

The company’s Shanghai factory, located in the Pudong district east of the city’s Huangpu River, had suspended production on March 28 after the city started rolling out lockdown measures to combat a surge in Covid cases that were later implemented citywide.

The plan for resuming production has currently has the blessing of local authorities — but it could still be subject to change depending on how the epidemic situation develops in the city, said the sources, who declined to be named as the matter is private.

One of the people said the US carmaker planned to start with one shift and would gradually ramp up.

Tesla and the Shanghai government did not immediately respond to a request for comment.

The latest stoppage was the longest since the factory started production in late 2019 and has led to an output loss of more than 50,000 units, according to calculations based on internal output plans seen by Reuters.

Ongoing production at the plant could be impacted by difficulties in procuring auto parts, however, as logistics in the city and surrounding areas have been severely disrupted by China’s Covid curbs.

He Xiaopeng, the chief executive officer of Chinese electric-car maker Xpeng, said Thursday that automakers in China may have to suspend production in May if suppliers in Shanghai and surrounding areas were not able to resume work.