Donegal County Council has adopted a revised budget and has been saved from dissolution.
A deal was reached between Fine Gael and Independent Councillor John Campbell who said earlier he would be voting against the budget.
The support of Cllr Campbell combined with the absence of Fianna Fáil Councillor Rena Donaghey who had left the chamber, meant that the budget was passed with the casting vote of the Chairman, Independent Councillor Ian McGarvey.
Fine Gael put new budget proposals to the council meeting which were supported by Cllr Campbell.
Cllr Campbell agreed to new proposals, which include an increase of €250,000 in spending on tourism development and €50,000 to buy more library books.
Earlier Sinn Féin and Fianna Fáil councillors said they would not support the local authority budget for 2014.
Councillors had been told that if they fail to adopt a budget by midnight, then they faced the dissolution of the council.
Under local government legislation, the minister has the power to remove councillors from office and take steps to ensure that the council itself continues to function.
An administrator from the Department of the Environment would have been put in place to run the council along with its executive staff.