On death row in Malawi, Byson Kaula was nearly executed three times - but on each occasion the hangman stopped work before hanging all the prisoners on his list. So he survived… until the country stopped executing people altogether.
Byson Kaula says jealous neighbours were responsible for him being found guilty of murder. It was 1992 and murder in those days carried a mandatory death sentence.
Brought up in a small village in southern Malawi, Byson had made enough money working in the gas industry in Johannesburg, South Africa, to return home and buy land. He employed five people and grew fruit, wheat, maize, and cassava.
"That is when my sad times began," he says.
Neighbours attacked one of his employees, Byson says, leaving him badly injured. The man couldn't walk without assistance, and while helping him get to the toilet - navigating steps that were slippery after heavy rain - Byson fell and dropped him. The man died later in hospital, and Byson - then in his 40s - was charged with murder.
In court, Byson's neighbours testified against him.
His mother, Lucy, sitting at the back of the courtroom, couldn't hear the sentence being read out and had to ask what was happening. When she was told he had been sentenced to death, "tears rolled from my eyes down my chest," she says.
This was towards the end of the totalitarian government of Hastings Banda, which had controlled the country since 1964. Byson vividly remembers the horror of waiting for his turn at what he calls "the killing machine".
"When I was told: 'You can go now to the condemned section waiting for your time to be hanged' - oh, I felt as if I was already dead."
At that time, there was just one executioner - a South African who travelled between several countries in the region, carrying out hangings. When he arrived in Malawi, once every couple of months, the prisoners on death row knew that time, for some of them, had run out.
One day Byson remembers being told that his name was on the list of 21 people to be hanged within hours. A guard told him that executions would begin at 13:00 and that he should "just start praying".
Find out more
Listen to Life After Death Row, on Assignment, on the BBC World Service, on 21 February
They continued until 15:00, when the executioner stopped work. But he had not reached the end of the list. Three people, including Byson, would have to wait until he returned.
"He was the only one operating that machine. And on that day, I understand he said: 'No it's too much, I'll come again next month,'" Byson says.
The same thing happened twice more, Byson says. The list was drawn up, but the hangman didn't finish it - and each time, by chance, Byson was among those left alive at the end of the day. On the third occasion, all the prisoners on the list were executed except him, he says.
In a way he was lucky, but the experience took its toll on him and he attempted suicide twice - only to survive this too.
After the establishment of multi-party democracy in Malawi in 1994, all executions came to a halt. The death sentence is still given out, even today, but no president has signed a death warrant for 25 years. Prisoners either languish on death row for years or have their sentences commuted to life imprisonment.
In time, Byson was moved from death row to the main part of Zomba Central Prison, and it looked as though he would spend the rest of his life there. He became heavily involved in the prison education programme, both studying and teaching. But he had no hope of ever being released.
Then, in 2007, a historic case changed everything.
A drug user who admitted killing his stepson, but argued that he had been temporarily insane, went to court to challenge the mandatory death sentence for murder. He argued that this breached the right to a fair trial, and the right to protection from "inhuman and degrading treatment" - both guaranteed by Malawi's constitution - and the court agreed. In some cases of murder the perpetrator was more culpable than others, it ruled, and there should therefore be different levels of punishment.
This meant that all mandatory death sentences had to be reviewed.
Of nearly 170 prisoners eligible for resentencing, 139 have so far been released. According to the legal charity Reprieve, many had mental health problems or were intellectually disabled. More than half of those entitled to a new hearing turned out to have no court record at all - it was unclear why they were even in prison.
When lawyers said that they wanted to take Byson back to court he initially resisted, as he had been so terrified by his first experience. But he gave in, and when the judge told him he was free to leave immediately, he was stunned.
"The prison warders said can you get out of the accused box. But I couldn't stand up. I was just shivering, all my body was so weak… It was just as if I was dreaming. I could not believe what the judge had said."
Byson wasn't the only person whose life had been changed by his sentence.
His mother Lucy had visited every year during his incarceration. She would save her earnings from a year's work farming cotton to make the journey to the prison in Zomba, bringing Byson as many provisions as she could carry.
On the day of Byson's resentencing in 2015, she wasn't there, but her younger son was. When he rang to tell her the news, she took a while to believe what he was saying. Then, she says, she "jumped around like a lamb - a young lamb… my heart was filled with joy".
Byson was taken to a halfway house to help him learn new skills and make the transition back to normal life after 23 years in prison. Already in his 60s, he was the oldest person they'd ever had there.
He now goes back as a volunteer at weekends, to advise other ex-prisoners who are going through the same experience.
The land Byson used to farm is now overgrown. His wife died during the long years he was in prison and his six children have grown up and moved away.
He lives alone, but takes good care of his mother, now in her 80s.
"During my imprisonment, all I was worrying about was my mother… Being her first-born, I would do everything possible for her. Now that I'm back, I don't let her go farming or do hard jobs. I have got other people to do the jobs for her. She doesn't go to the field. I do it myself."
His next project is to build her a new brick house.
You may also be interested in:
Just over a year ago, Greek pilot Vasileios Vasileiou checked into a luxury hilltop hotel in Kabul. The Intercontinental was popular with foreign visitors - which is why, on 20 January, Taliban gunmen stormed it, killing at least 40 people. Vasileios explains how he survived.