Andy Murray overcame illness to secure his place in the last four of the Miami Masters.
Murray secured a 4-6 6-3 6-4 victory against Janko Tipsarevic but it was far from easy for the Scot.
The British number one lost the first set, with several unforced errors proving costly after he led 4-2.
But Murray, who received treatment for a stomach complaint after the first set, rallied despite a far from convincing display to claim victory.
Murray will now meet Rafael Nadal or Jo-Wilfried Tsonga in the semi-finals.
And the world number four will hope his illness is a thing of the past as he will need all his energy if he is to secure a place in the final.
Ninth-seed Tipsarevic put up a good fight as the Serb looked to take advantage of Murray's illness.
But in the end the 2009 champion's fighting instinct saw him battle back into the match and secure the win after two hours and 39 minutes.
After being broken in his opening service game, Murray roared back to lead 4-2 in the opening set.
But Tipsarevic showed terrific character to win four games on the bounce to snatch the opening set, before claiming an early break in the second to take control of the match.
Murray called for the doctor complaining of indigestion.
He returned to court and quickly found himself 2-0 down in the second set before breaking back to claw his way back into the match.
Murray slowly began to settle, and his movement around the court improved as he grabbed another break before serving out the second set to force a decider.
There was no looking back after that.
Murray made the breakthrough in the decider, winning a crucial third game in which Tipsarevic had his chances, before consolidating his position with a love service game.
While Murray never looked completely comfortable, he held his nerve to secure a gutsy victory.