Venezuela's best-known jailed opposition leader, Leopoldo Lopez, has celebrated a surprise return to his family after being granted house arrest with a promise to fight on following three years' imprisonment for leading anti-government protests.
Hours after his pre-dawn transfer from the Ramo Verde military jail on Saturday, Mr Lopez appeared on top of a wall in front of his Caracas house, waving the Venezuelan flag and punching the air before a crowd of supporters who cheered and cried upon seeing him.
In a message released by his party, the 46-year-old hardliner urged opposition supporters to continue street protests against President Nicolas Maduro, which are in their fourth month and have led to at least 90 deaths.
"If maintaining my fight for freedom means running the risk of returning to a cell in Ramo Verde, I am more than happy to take it," he said in the message read by Freddy Guevara, the No 2 in Mr Lopez's Popular Will party.
"Today, I am a prisoner in my house, but so are the Venezuelan people. What kept me going in the toughest days was knowing that whatever suffering I endured was nothing compared to our people."
Mr Lopez's release, aided by foreign pressure, gave some rare cheer to Venezuela's opposition who have otherwise seen Mr Maduro give few concessions in their demands for freedom of activists, general elections and fixes for an economic crisis.
"Despite being under house arrest, he showed his face to the country," said Maria Garcia, 36, a business consultant, outside his house. "What we need to do now is stay in the street, because we need to achieve not just the freedom of Leopoldo but also the freedom of the Venezuelan people."
Fresh opposition street rallies were planned for Sunday.
A photogenic, Harvard-educated former mayor and economist, Mr Lopez would likely be a popular opposition presidential candidate if able to run in any future vote.
He is serving a sentence of nearly 14 years.
While the socialist Mr Maduro may be calculating Mr Lopez's return home will ease pressure on him, opposition leaders presented it as a triumph for their protest strategy and a sign the government was caving.
It was not clear, however, how Mr Lopez's presence at home could materially weaken Mr Maduro, who is plowing ahead with a plan to create a parliamentary superbody that will be able to rewrite the constitution and even dissolve state institutions.
The opposition has long called Mr Lopez a political prisoner, and leaders around the world, including US President Donald Trump, had been pressing for his full freedom.
Mr Maduro has for years refused to pardon Mr Lopez, describing him as a dangerous terrorist who sought to overthrow him through street violence. Government supporters also often note Mr Lopez's role in a short-lived 2002 coup against the late former leader Hugo Chavez when he helped arrest a minister.
"The Supreme Court has granted [house arrest] to someone who caused one of the most terrible episodes of recent years," said Defense Minister Vladimir Padrino, adding the measure showed tolerance, dialogue and political maturity by the government.
Venezuela's Supreme Court said Mr Lopez had been given the measure due to health problems, but his family countered that he is in good shape and he looked robust as he waved enthusiastically.
The release was aided in part by the involvement of former Spanish Prime Minister Jose Luis Rodriguez Zapatero, who has for years maintained talks with the Maduro government, Spanish Prime Minister Mariano Rajoy and Venezuelan officials said.
While Mr Maduro could be seeking to ease pressure with Mr Lopez's return to home, there was no sign of compromise on other fronts.
At his behest, Venezuela on 30 July will elect a controversial Constituent Assembly.
The opposition says that is a power grab meant to keep the socialists in office and annul the existing opposition-controlled legislature against the will of the people.
Several hundred supporters rallied through the day outside Mr Lopez's home in the upscale Caracas neighbourhood of Los Palos Grandes, some wearing shirts emblazoned with Mr Lopez's face.
They waved Venezuela's flag, chanted slogans and set off fireworks to celebrate.
"I think this is the first day of the transition," said Maria Antonieta Witzka, 57, a physical therapist. "The government is realising that we are the majority."
Though a hero to many, Mr Lopez has also faced criticism from some within the opposition for at times being headstrong and domineering. He founded the Popular Will party after splitting with the First Justice party that he had also helped found.
Though Mr Lopez had publicly called for peaceful resistance to Mr Maduro in 2014 and was behind bars during most of the unrest that year which killed 43 people, prosecutors said his speeches sent subliminal messages and constituted a call to violence.
One of the prosecutors who led the case later fled the country and said the proceeding had been a mockery of justice.
The case has long been a cause celebre for opposition supporters over what they deem the Maduro government's trampling of human rights.
Mr Lopez is the scion of wealthy families and a direct descendant of the sister of Latin American independence hero Simon Bolivar as well as of Venezuela's first president, Cristobal Mendoza.
Pro-government critics paint him as a dangerous radical in the pocket of Venezuela's wealthy elite and the US government.