Five-time champion Roger Federer weathered an early storm to beat Australian Nick Kyrgios in three sets and reach the US Open last 16.
Federer, 37, saved four break points in a mammoth seventh game in the first set, going on to hold and then break at 5-4 for the opener.
After that, Kyrgios lost focus as Federer wrapped up a 6-4 6-1 7-5 win in one hour 44 minutes.
The Swiss second seed will next face Kyrgios's compatriot John Millman.
Federer, who has won a record 20 Grand Slam titles, has not triumphed in New York since 2008.