Brazilian airline Azul, which emerged from Chapter 11 in February, has taken out a five-year, BRL2.7 billion ($520 million) loan from national development bank BNDES to refinance debt.

The bank has already disbursed half the total funds and Azul said it expects to receive the other half by the end of the year, according to a securities filing published on Tuesday.

Azul added that it will use the proceeds to prepay more expensive debt to the tune of approximately BRL400 million as part of a liability management exercise.

Its shares jumped 9% on Wednesday on São Paulo’s B3 stock exchange, closing at BRL19.41.

BNDES draws the cash from a government-funded civil aviation fund that the government created earlier this year to help local airlines mitigate the impact of the increased cost of jet fuel. Loans from the fund charge interest varying from 4% to 7.5%, significantly below the central bank’s benchmark Selic rate of 13.75%.

Rival carriers Gol and the Latam Airlines are also eligible for financing from the BRL8 billion fund, BNDES said last month.