Gloucestershire 210 (Dent 66, Cartwright 4-33) and 326 for 4 (Bracey 125*, Harris 3-60) drew with Middlesex 455 for 8 dec (Gubbins 99, Malan 76, Morgan 76)
James Bracey's second century of the season saw Gloucestershire comfortably salvage a draw in their County Championship clash with Middlesex at Lord's.
The Bristol-born left-hander mixed obdurate defence and steely concentration with a sprinkling of boundaries to lead the visitors to safety on the final day after they had been forced to follow on.
Bracey raised his ton with his 12th four, clenching his fist in celebration of 272 minutes of sterling effort, before finishing undefeated on 125.
Wicketkeeper Gareth Roderick (48) and Jack Taylor (41) lent staunch support on a day when the home side's bowling attack toiled hard, but never looked likely to claim the eight wickets needed to force a win.
"It's good enough just to play at Lord's," Bracey said. "I wanted to enjoy the occasion and I've surpassed myself, so I'm really happy. Tea came at an annoying time - I'd have liked to stay out there but once I got my head back on I wasn't going to let it slip, so I was really happy when that one got past fine leg."
Middlesex, badly needing a win after a spluttering start to the red-ball campaign, were always going to need early wickets on day four, but in Bracey and Roderick met two batsmen determined to entrench.
Bracey survived two lbw shouts on 19, the latter from spinner Ollie Rayner the closer of the two, but those scares apart was relatively untroubled. One straight drive for four off Steven Finn underlined his burgeoning talent.
Roderick too offered no cause for optimism to the Lord's tenants as they went wicketless to the lunch interval.
The breakthrough came soon after the resumption when Roderick pushed at one slanting across him from James Harris and edged to Rayner who took a smart low catch at second slip.
Bracey soon had 50 and as the afternoon wore on the Middlesex bowlers tired, offering him the chance to expand his repertoire of strokes. Taylor too played nicely though he should have been run out when a drive from Bracey was deflected onto the stumps by bowler Tom Helm with the non-striker having strayed beyond the safety of the crease. However, vehement appeals from both bowler and captain Dawid Malan went unheeded.
The 26-year-old wouldn't make the most of the reprieve, inside edging a ball from Harris onto his stumps shortly before tea, but by then a draw was within Gloucestershire's grasp.
The interval served only to delay what had long seemed an inevitable hundred for Bracey, a hugely creditable effort despite the increasingly benign pitch conditions.
Failure to bowl the visitors out twice over the final two days means Middlesex, pre-season favourites for an immediate return to county cricket's top tier, have just one win from five games and are already more than 30 points adrift of leaders Warwickshire.