NEW YORK (AP) — The New York Mets and José Quintana agreed to a $26 million, two-year contract on Wednesday, adding another veteran arm to the team’s rotation.

A person familiar with the negotiations confirmed the move to The Associated Press on condition of anonymity because the deal was pending a physical.

New York has been rebuilding its pitching staff following a playoff loss to San Diego in the wild-card round. Three members of its rotation became free agents this offseason, and the Mets also had several openings in their bullpen.

Ace right-hander Justin Verlander agreed to an $86.7 million, two-year contract with New York on Monday.

Quintana played for Pittsburgh and St. Louis last season, going 6-7 with a 2.93 ERA in 32 starts. The left-hander was terrific after he was traded to the Cardinals in August, posting a 2.01 ERA in 12 appearances for the NL Central champions.

Quintana also worked 5 1/3 scoreless innings for St. Louis in his lone playoff start, but the Cardinals were eliminated by Philadelphia.