Roger Federer booked his spot in the last four of the ATP Finals for the 15th time in his career and claimed his opening loss to Kei Nishikori helped him to dig deep in his last two matches.
The 37-year-old overcame Kevin Anderson 6-4 6-3 to top his group, joining both the South African and Novak Djokovic in the semi-finals of the season-ending tournament in London.
Anderson and Djokovic sealed their last-four berths having won each of their first two matches, yet Federer's shock opening loss to Nishikori had left him up against it in his final two encounters.
However, having beaten Dominic Thiem on Tuesday, the Swiss was at his scintillating best on Thursday to see off Anderson, who had beaten Federer in the Wimbledon quarter-finals earlier this year.
"I'm very happy," Federer said in his on-court interview afterwards.
"The first match was tough against Kei, I never got going. With my back against the wall, maybe it is easier for me to play.
"I tried to come up with a good game plan against Dominic and also Kevin today. I'm happy it all worked out. I'm thrilled to be in the semis.
"These round-robin formats are not straightforward; you feel like you can lose a match and still go on.
"We're used to you lose, you leave, you don't hang around.
"From that standpoint, it was more straightforward for me today."
Thiem had done Federer a favour by beating Nishikori earlier in the day and the Swiss thought the group's situation impacted both him and Anderson in their contest.
"I think it was maybe different for Kevin because he knew he had qualified and Thiem winning helped me to be more relaxed," he added.
"But I always wanted to go out with a bang, win the match and if I go through, great."
|Warriors´ Curry believes moon landing was faked|
|76ers star Butler suffers strained groin|
|Brady: Patriots still have a lot of football to play|
|´No one died´ - Belichick´s message to Patriots after stunning loss|
|Silva lauds Digne after stunning free-kick|
|Aduriz joins Messi, Ramos in LaLiga history books|
|We have a plan - Ravens coach Harbaugh prepared for Flacco return|
|´It´s difficult to accept´ - Gracia calls for introduction of VAR|
|LaLiga press on with overseas match plan despite Barcelona withdrawal|
|PSG open Coupe de France defence at fifth-tier Pontivy|
|Hazard backs Sterling as Neville reveals England star´s Euro 2016 concerns|
|Everton 2 Watford 2: Digne salvages draw with 96th-minute free-kick|
|Barcelona could ´steal´ Kane, says Pochettino|
|Oakland Raiders fire general manager McKenzie|
|Struggling Villarreal appoint Garcia Plaza as Calleja successor|
|Warriors assign Cousins to G League team|
|Barcelona pull out of plan to play LaLiga game in Miami|
|Pochettino to keep an eye on Inter when Spurs face Barcelona|
|Pochettino confirms Walker-Peters set to start against Barcelona|
|Denver Nuggets add free agent Young|
|Topping Group A no magic wand for an easy knockout draw, says Simeone|
|The cake has been made, now we need the cherry - Ancelotti targets repeat at Anfield|
|Lloris braced to face ´one of the best in history´ in Messi|
|Tuchel expects Neymar to face Red Star|
|Foden signs Manchester City deal to 2024|
|It happened to me! - Valverde laughs off Dembele timekeeping|
|´Projecting´ an Argentina return? Messi met with AFA president and Scaloni|
|Erasmus expects to leave head coach role after World Cup|
|Chelsea issue suspensions pending investigation into Sterling incident|
|Kane is extraordinary – Valverde hails reported Barcelona target|
|Man behind Naomi Osaka´s rise wins WTA Coach of the Year|
|England name unchanged Test squad as Willey returns for West Indies ODIs|
|Spalletti: No issue with Icardi watching Superclasico in Madrid|
|Klopp confirms 2013 talks with ´chatty´ Napoli president De Laurentiis|
|Sri Lanka spinner Dananjaya suspended due to illegal action|
|His reaction was just brilliant – Klopp praises Sterling for response to abuse|
|Gomez renewal a ´smart decision´ for both parties – Klopp|
|Magnificent Molinari named European Golfer of the Year|
|Barcelona best option for Frenkie de Jong, insists midfielder´s father|
|Gronkowski on Miami Miracle: ´Got to make that tackle´|
|Tottenham youngster Walker-Peters signs on until 2023|
|Juventus ´more of a family´ than Real Madrid - Ronaldo|
|Kingsley Coman contemplates retirement if injury nightmare continues|
|McVay ´sick´ over offensive failings as Rams coach takes blame for loss|
|Calleja axed as Villarreal coach|
|Kenyan Drake on Miami Miracle: I couldn´t let Gronk tackle me!|
|Ronaldo: I deserved Ballon d´Or, the numbers don´t lie|
|Rugby Australia to make Cheika decision this month|
|England defender Gomez signs new Liverpool deal|
|Ronaldo wants to see Messi follow him to Italy|
|Neymar happy to play in any position for PSG - Draxler|
|Paine insists he is ´fine´ after taking blow to finger|
|Ponzio: River players will be ´idolised´ for Libertadores success|
|Champions League permutations: How Inter, PSG and Liverpool can progress|
|Kohli: India were better and deserved to win|
|Bears shut down Goff, Rams|
|India survive dramatic finish against Australia|
|Klopp calls for electric Anfield atmosphere against Napoli|
|Saints clinch back-to-back NFC South titles, Bears trump Rams|
|Bucks improve to 2-0 against Raptors with win in Toronto|
|Black Caps include Patel for Sri Lanka Tests|
|Maidana: River want Real Madrid clash|
|Cowboys top Eagles in OT behind stellar Cooper display|
|AC Milan evaluating Fabregas signing – Leonardo|
|WATCH: Steelers´ chance at game-tying field goal slips away|
|Hayne will plead not guilty to charges, says lawyer|
|Boca boss Schelotto: The only thing I feel is sadness|
|Cardinals´ Fitzgerald makes NFL history with most receptions for one team|
|River Plate´s Copa Libertadores star Gonzalo Martinez confirms January departure|
|Klopp: I was never worried about Salah´s form|