Gloucestershire skipper Michael Klinger notched his fourth LV= County Championship century of the season to help set up an intriguing final day of their Second Division match against Kent at Cheltenham.
Klinger posted an unbeaten 102 as Gloucestershire made 237-1 declared and, with Kent having also made an early declaration in a bid to try and produce a result, the visitors will now try and chase down a target of 411 in a minimum of 96 overs on Saturday.
After only nine wickets had fallen in seven previous sessions, Klinger and Kent skipper James Tredwell struck a deal during the lunch interval, contriving imaginative declarations in order to arrive at a meaningful finale.
Kent declared their first innings on 389-5 in the 101st over, forfeiting a fifth batting bonus point in favour of giving themselves an opportunity to win a four-day game for the first time in nine attempts this season.
Gloucestershire commenced their second innings 173 runs ahead and left-hander Chris Dent picked up where he had left off in the first, playing shots all around the wicket and threatening a second successive century before offering a return catch to occasional spinner Sam Northeast after rushing to 82 from 75 balls.
Having served as junior partner in an opening stand of 151, Klinger accelerated during the final hour to reach three figures from 118 balls with nine fours and a six.
Ben Harmison earlier became the fourth batsman to post a hundred on a flat College Ground pitch, the all-rounder realising the landmark from 141 balls in a near-faultless innings that included 12 fours and a six.
He shared in stands of 103 and 74 with Darren Stevens (74) and Geraint Jones (21 not out) for the fifth and sixth wickets respectively and helped guide the visitors clear of danger after they had slipped to 212-4 in the morning session.