A Scots gymnast has helped Great Britain claim their first men's Olympic team medal in the sport in a century.
Daniel Purvis was part of a incredible team performance that won bronze medal in the men's team gymastics at the North Greenwich arena.
The Liverpool-born gymnast, who represents Scotland thanks to his Dundee-born mother, performed alongisde Louis Smith, Max Whitlock, Sam Oldham and Kristian Thomas to score a total of 271.711.
The team narrowly missed out on a silver after a poor dismount from the Japanese team saw them relegated to fourth position, promoting team GB to second place and pushing Ukraine into the medal place.
However, the Japanese successfully appealed the marking decision and they were reinstated as silver medalists.
The team was cheered on by a royal audience of the Duke of Cambridge and Prince Harry who watched as Great Britain won their first Olympic team medal in the event since the bronze at the Stockholm Games in 1912.
Defending champions China won gold.
The medal capped one of the most successful years to date for British men's gymnastics after they won team gold at this year's European Championships - their first in a major championships - and then exceeded all expectations by just reaching the Olympic final.
Scottish Sports Minister Shona Robison said: "This has been a momentous day for Scottish athletes and I'd like to say a huge well done and congratulations to Daniel Purvis on his bronze medal win. I'm sure everyone will agree that this is a fantastic achievement for him.
"Our athletes have shown the determination and passion for their sport that make up such an important part of the Olympic spirit and they can take great joy in the knowledge they have done their nation proud.
"Scotland has played a crucial role in these Olympics so far, with 450,000 Scots taking part in the torch relay, Sir Chris Hoy carrying the flag at the opening ceremony and the football matches at Hampden.
"Importantly, I'm sure Daniel's success will help inspire many young Scots to become involved in sports themselves and perhaps create future Olympic medal winners."
You can watch the documentary The Scots Going for Gold on the STV Player
More About Olympics 2012
- Team GB Handball coach ready for homecoming game at Ravenscraig
- Olympic rower Katherine Grainger receives CBE from Princess Royal
- Jamie McLaughlin named East Kilbride Pirates' player of the year
- Opinion: Is Andy Murray the greatest ever Scottish sportsman?
- Day in quotes: Edinburgh Parade and Sir Chris Hoy's Freedom of the City
- Edinburgh’s parade in pictures, Tweets and Olympic medals
- Sir Chris Hoy receives the Freedom of the City of Edinburgh