Stormont's First Minister has faced down a motion of no confidence during a day of drama at Stormont that included a mass walkout from the Assembly chamber.
Democratic Unionist Arlene Foster defied repeated calls for her to stand down pending the outcome of an independent investigation into her role in a botched renewable heat scheme that has landed Stormont with an estimated £400 million overspend.
Mrs Foster described the Renewable Heat Incentive (RHI) affair as her "deepest political regret", but insisted she was going nowhere.
"I remain as committed today as I did on the day I was elected as First Minister to fight the good fight, finish the race and keep the faith," she said.
The SDLP's motion of no confidence was supported by a majority of voting MLAs (39-36) but was defeated because it did not secure the required level of cross-community support, due to DUP opposition.
While the DUP's partner in government Sinn Fein has also called for Mrs Foster to stand down, its members did not vote in the debate, instead proposing its own motion on the RHI scandal for mid-January. That move eased fears of an immediate threat to the political institutions, though the crisis is far from over.
Sinn Fein and the DUP are set to hold talks on the way forward in coming days.
Ahead of the motion of no confidence, all non-DUP members of the Assembly walked out of the chamber amid an acrimonious row over Mrs Foster's right to make a statement on the RHI to the Assembly, without the required approval of Sinn Fein Deputy First Minister Martin McGuinness.
In extraordinary scenes, which saw Speaker Robin Newton face a barrage of critical questions, Mrs Foster made her statement to rows of empty benches with only her party colleagues for company. The DUP leader fielded questions from her MLAs in an otherwise empty chamber.
Mr McGuinness branded the episode a "shambles". He said the RHI furore had left the power-sharing institutions in a "very difficult situation" but pledged to focus on getting them back on track.
Later in the day, a majority of the absent MLAs returned to the Assembly for the motion of confidence debate.
The RHI was due to offer a proportion of the cost businesses had to pay to run eco-friendly boilers, but it ended up paying significantly more than the cost of fuel, enabling applicants to "burn to earn" - getting free heat and making a profit as they did it.
Claims of widespread abuse include a farmer allegedly set to pocket around £1 million in the next 20 years for heating an empty shed. Mrs Foster was the minister in charge of the scheme at its inception.
Responding to the censure call, a clearly angered Mrs Foster launched a string of broadsides at her rivals.
Denouncing opposition parties as "irrelevant and impotent" and accusing the media of partiality, she said: "For almost two weeks I have listened on an almost daily basis to lies presented as facts, the truth distorted out of all recognition and a public narrative created and relentlessly pursued which bears no relationship to reality."
Assured of the party strength to defeat the motion of no confidence, Mrs Foster branded it a "kamikaze" attempt at a "constitutional coup d'etat".
"I have to say it's a coup d'etat more worthy of a Carry On film," she added.
SDLP leader Colum Eastwood tabled the proposal.
"This is biggest public finance scandal ever to hit these institutions," he said.
"As this scandal has unfolded it has suited some to muddy the waters but we must not be distracted.
"So far, digging into this scandal has uncovered staggering incompetence - digging deeper has the potential to uncover corruption."
Mr Eastwood said Mrs Foster must do the "dignified and decent" thing and stand down.
"We can't go on like this. The longer the First Minister clings on the more her credibility will fade," he said. "And let me assure the First Minister, Christmas will not save her."
The walkout happened after Mr McGuinness withdrew his approval for Mrs Foster to appear to explain her role in the affair.
All statements by Mrs Foster and Mr McGuinness's joint office need the support of both sides of the power-sharing executive.
Mr McGuinness's move prompted members from all parties but the DUP to question the validity of Mrs Foster's appearance. They walked out when she rose to commence her lengthy statement.
The "cash for ash" scandal reached fever pitch last week when former DUP economy minister Jonathan Bell broke ranks to level a series of claims against his leader and party advisers.
In a TV interview, a tearful Mr Bell said God told him to come clean as he claimed a "highly agitated and angry" Mrs Foster demanded he keep the RHI open for an extra fortnight despite its huge losses.
Mrs Foster strongly rejected the claims. Mr Bell was suspended by the party over the weekend.
On Monday, Mr Bell claimed he had an email containing critical information about the scandal. He said he was being prevented from publishing details of the message and called for that ban to be lifted.
Much of the scrutiny on Mrs Foster has focused on how she responded to concerns raised by a whistleblower during her time as economy minister.
There was a flurry of claims last week about whether the individual raised concerns directly to Mrs Foster, or if she only outlined them after Mrs Foster passed her on to meet officials.
The DUP published an email from the whistleblower last week that made no mention of her RHI concerns - the party cited it to demand an apology from those who said she should have done more.
Another email has since emerged, sent directly to Mrs Foster in 2013, that raised specific concerns about the scheme.
In her statement, Mrs Foster said of the whistleblower: "She deserves our high respect and a sincere apology on behalf of my former department, which should not have dismissed her claims with disbelief, but examined them with diligence.
"It is no exaggeration to say that had she been listened to on any of the three occasions when she approached DETI, this crisis would have been avoided."
Regarding what information was passed directly to her, she added: "Unfortunately, it has been difficult to establish the exact facts around contact between this concerned citizen and myself and the department."