The Australian man who was locked up in a US federal detention centre for overstaying his visa by just 90 minutes, has been released from custody after more than two weeks.
Baxter Reid was taken to the Batavia Detention Center in Buffalo, New York, after being stopped on the US-Canadian border on April 23.
The 26-year-old from Canberra made headlines around the world and led to an online GoFundMe campaign that raised more than $US10,000 ($14,622) for his legal defence.
"He was very happy," Reid's lawyer Julie Kruger told AAP as she described his reaction in court on Wednesday when a judge announced he would be freed.
Reid crossed into Canada with his American girlfriend, Heather Kancso, just before his US visa expired at midnight on April 23.