Scotland booked their place in the ICC World Twenty20 play-offs despite losing their final qualification match to the United States in dramatic fashion.
The US snatched a seven-wicket win with just one ball to spare, putting up a superb chase of their target for 162 for victory.
However, Scotland still qualified for this week's play-offs after finishing third in Group B, behind Namibia and Ireland, narrowly seeing off Kenya on net run-rate.
Scotland sped to 161-8 off their 20 overs with Jan Stander top-scoring on 58, an innings that came off only 31 balls and included five sixes.
But their bowling effort proved less inspiring as openers Steven Taylor (40) and Aditya Mishra (62) laid the foundations in a 78-run stand for the Americans.
Mishra's 54-ball knock came to an end with five balls remaining and four runs needed, but Orlando Baker (21no) scored the winnings runs off Richie Berrington with the 119th ball of the innings to see the US home.
Kenya beat Uganda by 48 runs to join Scotland on four wins, but their net run-rate (+0.340) was just shy of Kyle Coetzer's side who finished on +0.347.