Great Britain's Samantha Murray stayed right in the hunt for a medal in the modern pentathlon at Greenwich Park and will start the final combined event only eight seconds behind leader Laura Asadauskaite.
Murray began the third phase of the competition, the show jumping, in third place and, although her round was not without its dramas, her score of 1140 was good enough to put her fourth overall.
World champion Mhairi Spence is unlikely to challenge for the medals, though, after dropping to 14th place following the riding.
The Scot drew a tricky horse and racked up both obstacle and time penalties for a score of 1096 points, meaning she will start the combined event 38 seconds behind the leader.
All the athletes found the show jumping course a challenge, with Ukraine's Iryna Khokhlova the only rider to jump a clear round.
Lithuania's Asadauskaite only had one fence down, though, and, as one of the fastest women in the field in the combined run and shoot, was looking good for gold.
She will start at the same time as Brazil's Yane Marques, with France's three-time world champion Amelie Caze, who also only had one fence down, two seconds back in the biathlon-style event.
Spence was not quite on top form in the fencing, winning 19 of her 35 bouts for 856 points, which put her tied for 11 but 100 points down on where she would have wanted to be.
Murray had the worst possible start, losing her first seven fights, but she recovered impressively and ended the fencing only one win behind Spence in joint 16th.
Murray then posted a time of two minutes 08.20 seconds in the swim but her score of 1264 was enough to move her up to third place. Spence was a couple of seconds off her best but posted a decent time of 2:16.51, climbing to ninth.