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."
|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|
|Packers QB Rodgers sets NFL record for most passes without an interception|
|World Cup bulking hampered Man United form – Lukaku|
|Leonardo rules out Ibrahimovic Milan return|
|Warriors´ Green to return against Timberwolves|
|I feel for him… we´ll make it work – Butler responds to Embiid´s frustration|
|Torino draw no missed opportunity for misfiring AC Milan, claims Gattuso|
|We´ll always be linked together forever - Wade reflects on playing with James before final match-up|
|O´Sullivan wins record seventh UK title|
|Chiefs secure playoff berth, Saints win NFC South|
|River Plate 3 Boca Juniors 1 (aet, 5-3 agg): Quintero and Martinez clinch Libertadores title in extr|
|WATCH: Chiefs QB Mahomes throws no-look pass|
|Dolphins defeat Patriots on miraculous final play|
|Kizzire eagle snatches QBE Shootout victory|
|AC Milan 0 Torino 0: Donnarumma shines, Cutrone misses late chance|
|Back to the drawing board for West Indies - Chase|
|Copa Libertadores: Messi and Griezmann among stars in Madrid for River-Boca Superclasico|
|Brady sets NFL record for most career TD passes|
|Copa Libertadores: Tevez named on Boca bench for Superclasico final|
|Premier League needs VAR, right now! - Benitez fumes over Dean´s decisions|
|McCall expects Itoje to fit for the Six Nations|
|Solari salutes Real Madrid character after ´ugly´ Huesca win|
|Berbatov defends under-fire Lukaku|
|Sarries crush Blues to maintain unbeaten start|
|Newcastle United 1 Wolves 2: Doherty punishes Yedlin red with late winner|
|Deeney jokes he´ll ´smash´ former Watford star Richarlison|
|Huesca 0 Real Madrid 1: Bale ends drought as Solari´s men edge to victory|
|Ponting: Umpires not looking at no-balls|
|Bale ends longest LaLiga goal drought|
|Porter backs Brees for MVP, Saints for Super Bowl|
|Verstappen eyeing 2019 title fight|
|Wall ´shouldn´t have played´ against Cavaliers after scoring just one point|
|Hazard: Man City the best team in the Premier League despite Chelsea win|
|LeBron explains why he gave a Grizzlies employee his game-worn shoes|
|Bangladesh cruise to ODI victory as seamers punish Windies|
|Football will win over violence, claims CONMEBOL president|
|Alcorcon support Reus Deportiu over unpaid players|
|Saponara explains cheeky celebration after last-gasp leveller|
|Godin and Filipe Luis return to Atletico training|
|Kick It Out condemns alleged racist abuse of Sterling|
|Emotional Oosthuizen clinches South African Open title|
|The Sunday Seven - 7 Key Opta facts for NFL Week 14|
|Martino salutes Atlanta´s grand plan|
|India´s tail must show greater application - Bangar|
|Mourinho: Diogo Dalot can be new Gary Neville|
|Sterling hits out at media coverage of black players|
|Lyon roars with defiance as Australia aim for unlikely victory|
|Bulls coach Boylen: Hooked starters ´embarrassing´ in record loss|
|Martinez pays tribute to Martino, Almiron after MLS Cup glory|
|LeBron: Final Wade matchup will be bittersweet|
|Alvarez-Kovalev rematch set for February 2|
|Newcastle Jets 2 Brisbane Roar 0: Sheppard, Jair score first A-League goals|
|India close in on victory in first Test|
|LeBron flirts with triple-double as Lakers down Grizzlies|
|Lomachenko unifies WBO, WBA titles with win over Pedraza|
|Joshua wants Wilder and Fury fights – Hearn|