American Mardy Fish brought his career to an end with a stirring five-set contest against 18th seed Feliciano Lopez at the US Open.
The 33-year-old was struggling with fatigue and cramp as he lost 2-6 6-3 1-6 7-5 6-3 in New York.
Fish, whose ranking has slipped to 581, has played just four matches this year - his first since 2013 after suffering with a severe anxiety disorder.
"You can beat it," said the former US number one after his final match.
Fish outlined his downward spiral in a piece on The Players' Tribune this week, describing how he "became consumed by this exhausting, confusing dread.