Sri Lanka has secured a $2.9 billion (£2.3 billion) bailout from the International Monetary Fund (IMF) as it faces its worst economic crisis since independence. The deal has been nearly a year in the making and a lifeline for the country that has billions of dollars in loans. Foreign Minister Ali Sabry told the BBC the government will raise funds by restructuring state-owned enterprises and privatizing the national airline. However, analysts warned Sri Lanka still faces a tough road ahead. The country's economy has been hit hard by the pandemic, rising energy prices, and populist tax cuts. A shortage of medicines, fuel and other essentials also helped to push the cost of living to record highs, triggering nationwide protests with inflation running at more than 50%. As a result the country defaulted on its debts with international lenders last May for the first time in its history. "We have lived beyond our means. Whether we like it or not, these difficult measures which may be very unpopular need to be taken," Sabry said in an interview before the funding was announced. "Luckily, most [people] other than politically-motivated unions have understood that. I know they are not happy, but they also understand we have no choice," Sabry added. Earlier this year the country introduced income taxes for professionals, ranging from 12.5% to more than 36%. It also raised other taxes to pay for critical purchases, including fuel and food. This is in stark contrast from the big tax cuts former Sri Lanka president Gotabaya Rajapaksa introduced in 2019, which lost the government income of more than $1.4 billion (£1.14 billion) a year. Andrew Wood, analyst at the S&P Global Ratings agency, said: "Sri Lanka still faces a long road toward consolidation of its government balance sheet, consistent economic growth, and external stability. "We expect the economy to contract again in 2023, albeit at a more modest pace, before returning to growth in 2024." Earlier this month, the IMF said Sri Lanka had secured financing assurances from all its major creditors, including China and India, which paved the way for the bailout. Sabry said it was "a little premature" to discuss if China — Sri Lanka's biggest bilateral lender — would consider writing-off some of the country's debts. "We have the will to pay, but we don't have the capacity to pay. What we are now trying to do is get that capacity back," he said. "That's going to be a very difficult and serious discussion." The Sri Lankan government had initially hoped to agree a new payment plan with China and India by the end of 2022. Beijing's lending to Sri Lanka stands at around $7 billion (£5.71 billion) while India is owed around $1 billion (£820 million). — BBC