Carrier Corp. is staying in Indianapolis after all.

Nearly nine months after announcing it would relocate its Indianapolis operations to Mexico, Carrier has reached an agreement with the incoming Trump administration to keep 1,000 jobs in the city. The company confirmed its plan on Twitter.

President-elect Donald Trump and Vice President-elect Mike Pence are scheduled to be in Indianapolis Thursday for a formal announcement, according to a transition official. Another source, who is familiar with the plan, said state incentives are part of the deal.

Carrier in a statement said it is "pleased to have reached a deal ... to keep close to 1,000 jobs in Indy."

The decision marks a major victory for Trump, who campaigned on keeping manufacturing jobs in the U.S. Trump promised he would convince Carrier to stay in the city — and punish the company if it didn't.