India has approved a $5.8 billion turnaround plan for financially struggling Air India, as well as the carrier’s order for 27 Boeing 787s.

The turnaround plan, which includes an equity infusion of 300 billion rupees ($5.8 billion) by 2020 to support Air India’s finances and restructure operations of the state-run airline, was cleared at a meeting of the Cabinet Committee on Economic Affairs, Civil Aviation Minister Ajit Singh says. It will be implemented by a consortium of 19 banks lead by State Bank of India.

In addition to allowing Air India to raise up to 74 billion rupees by issuing bonds or non-convertible debentures guaranteed by the federal government, the rescue plan also converts 110 billion rupees of the national carrier’s short-term working capital loans into long-term debt and 34 billion rupees into cash credit facilities, Singh says.

The carrier will spin off two of its units, which will involve moving 7,000 employees at its maintenance, repair and overhaul business and 12,000 in transport services, he adds.

Singh says restructuring of Air India was necessary, but the government will not use public money indefinitely.

 “The government will not indefinitely support Air India with taxpayers’ money if it does not perform as per the TAP. We will also monitor the performance of the airline ... There are set parameters that will [have to be] be seen, and only then tranches of equity will be released ... We cannot go on and on supporting Air India with taxpayers’ money.”

A committee will be formed to ensure that the airline is performing as required by the restructuring plan, he says.

The minister also expects that “the company will start making cash profits from 2018, but net profit will take more time.”

The federal cabinet also approved an order for 27 Boeing 787 aircraft “as per schedule,” the civil aviation minister says, adding that the airline is expected to receive its first 787 “within the next two months.”

For the first time, Air India will take new aircraft, such as the 787 and 777-300ER, on a sale-and-lease-back basis.

The government next week is likely to consider a proposal to let foreign airlines buy stakes in local carriers.