Ford Motor Co. will scrap plans to build a $1.6 billion plant in Mexico, after coming under criticism by President-elect Donald Trump for shifting small-car production south of the border.

The next-generation Focus compact car will be built at an existing factory in Hermosillo, Mexico, and Ford will cancel plans to build a plant in San Luis Potosi, Chief Executive Officer Mark Fields said Tuesday. The second-largest U.S. automaker will build two products at a factory in Wayne, Michigan, where it assembles the Focus now, protecting about 3,500 jobs.

Fields spoke before a crowd of assembly workers and reporters at Ford’s plant in Flat Rock, Michigan, where the company is investing $700 million and adding 700 jobs. The company said it will add production by 2020 of a fully electric sport utility vehicle with at least 300 miles of range, and an autonomous hybrid vehicle for commercial ride hailing or sharing by 2021 at the Flat Rock factory.

The second largest U.S. automaker already builds the Mustang sports car and Lincoln Continental sedan from its Flat Rock plant, which employs more than 3,700 workers. Ford idled the factory for a week in October due to declining Mustang sales, which fell 13 percent in the first 11 months of 2016.

Until February of last year, Ford also built the Fusion family sedan in Flat Rock. After sales for the model slumped, the automaker consolidated production of Fusion at its primary plant in Hermosillo. Fusion sales fell more than 10 percent last year through November.

Ford was a target of President-elect Trump during his campaign for plans to move small car production from the U.S. to Mexico. The Dearborn, Michigan-based company changed course on a plan to move production of the Lincoln MKC sport utility vehicle south of the border. Fields said Trump influenced the automaker’s decision to continue building the MKC in a Louisville, Kentucky, factory where it also produces the Ford Escape SUV.