The country received a standby loan of euro20 billion ( $ 27.5 billion ) from the International Monetary Fund and other institutions in late 2008 , allowing it to defend its currency and avert a financial meltdown , but has been forced to implement a series of cutbacks and austerity measures to keep the budget deficit under control .