A survivor of the Algerian hostage crisis has relieved his daring escape from a terrorist attack on a BP compound, describing the ordeal as "something you never want to go through again."
BP employee Alan Wright, 37, was working at the plant in In Amenas on Wednesday when the Islamist terrorists stormed the installation.
The father-of-two hid in an office amid sounds of gunfire and attempts by the terrorists to lure them from their hiding place. He then joined Algerian colleagues in cutting their way through a fence and fleeing, wearing a hat to wear to make him "look less ex-pat".
He told Sky News: "If you have been captured, there's pretty much no escape and it is going to take a miracle to get you out."
You've no idea what is out there, he told Sky News
David Cameron has confirmed that three British nationals have been killed in Algeria, a further three are believed to be dead and a British resident has also died.
Describing the attack as 'vicious and cowardly' he said the saga was a 'stark reminder' of the continued battle needing to be waged against terrorism.
Five suspected members of the Islamist militant group who took hostages at the plant have been arrested alive, the BBC has reported.
The kidnappers are linked to a terrorist splinter group led by veteran jihadist Mokhtar Belmokhtar, who claimed he would release the hostages if the West ceased operations in Mali.
Mr Wright, of Portsoy, Aberdeenshire, was working on Wednesday morning when he thought the compound had experienced a power cut and believed it was "nothing serious".
Word soon spread they were under attack so he and three ex-pats and about a dozen Algerians holed up in an office.
The plant where Mr Wright was working
The men were surprisingly calm, he said, "everyone went into safe mode" and they assessed what they were going to do and stocked up on supplies.
The group got a satellite telephone, taped up their window and locked the door.
Soon after they heard gun fire but could not tell how far away it was.
The terrorists had tried to clear all the buildings of workers and one of the jihadists patrolled the area outside their hideaway and tried to trick them out.
Mr Wright told the broadcaster a man walked past saying good morning in a very friendly Arabic voice.
"That was the first moment when we thought we are in big trouble here," Mr Wright said.
The terrorist "just walked past and...assumed the building had been emptied".
Cameron has described the terrorist attack as 'vicious and cowardly'
The group then spent a terrifying nine hours trying to stay out of sight and wondering what was happening.
At 6pm they left the office for another room and the ex-pats grew concerned that the Algerian nationals would leave them, as they were free to go, and inadvertently betray their position.
Shocking footage of the attack emerged
Mr Wright phoned home a few hours later to reassure his family, he said, although he was still in grave danger.
He said he did not want to speak to his two young daughters as he did not want his last conversation with them to be on a crackly phone.
In the morning, despite wanting to stay hidden, Mr Wright went along with a plan the nationals had to flee.
he group, which had now swollen to about 30, made a break for it.
They cut the perimeter fence but were still worried as the terrorists were dressed the same as the Algerian security forces so they had no real way of knowing who to trust.
"The first cut of the fence, the wire and tension makes such a noise when it breaks and you knew it travelled to where the terrorists were," Mr Wright told Sky News.
"But within 30 seconds they had both fences open and we were free to go, that was it."
Mr Wright said it was important not to run and attract attention to themselves.
"You know these guys are behind you and if they see you, you don't know if they're going to be shooting at you, you just don't know where everybody is...
"There was a mixture of relief, but you've no idea of what is out there.
"We got about a kilometre into the desert and you can see the military point with eight or nine military personnel with guns pointing into our spot but also that they had identified us and were making tracks to come our way.
"Then you think 'Is it the terrorists or is it the gendarmes?'
"And for 20 minutes you're still not sure - we're down on your hands and knees with our hands up."
A number of British hostages have returned home
The group was then split into Algerians and ex-pats and Mr Wright thought they had walked into the hands of the terrorists.
He said: "You're thinking you've just made the biggest mistake of your life...
"That was a horrible, horrible thing, that you have escaped then into the hands of the terrorists, or so we thought...
"You just think that's it... you fear the worst, you can't put into words how bad you feel, it's something you never want to go through again."
The kidnappers are linked to a terrorist splinter group led by veteran jihadist Mokhtar Belmokhtar
Mr Wright applauded the courage of his Algerian colleagues in helping the ex-pats escape, and he thanked the military for helping to save him.
He said: "The guys who had the option to surrender and be safe but decided to stay and help us escape, you'll be in debt to them for the rest of your life, the gendarmes as well, the military, if it wasn't for them it would have been a lot worse."
Mr Wright added that his thoughts were with those who had been killed.
Scotland's First Minister Alex Salmond said that two Scots, or people with immediate Scottish family connections, were believed to have been killed. There were eight Scots among the survivors.
"The Scottish authorities continue to offer every support to all caught up in this crisis, and we remain in close contact with the UK Government," he said.