Andy Murray fought hard to overcome Australian qualifier Max Purcell to reach the last 16 at the Canadian Open.
The 36-year-old Briton beat Purcell 7-6 (7-2) 3-6 7-5 in two hours and 47 minutes in Toronto.
Murray will face Italian seventh seed Jannik Sinner for a place in the quarter-finals.
Also through to the next round is Wimbledon champion Carlos Alcaraz, 20, who defeated American Ben Shelton 6-3 7-6 (7-3) in his second-round tie.
The Spanish world number one will face Poland's Hubert Hurkacz after coming through a competitive encounter with 20-year-old Shelton.
There was little to separate Murray and Purcell in the opening stages and although Murray took the first set on a tie-break, world number 78 Purcell rallied in the second to force a deciding set.