Papua New Guinea clinched the final promotion place at the International Cricket Council (ICC) World Cricket League Division Two on a dramatic day in Namibia.
The Pacific nation were left battling with Canada for a crucial fourth-place finish at the tournament, which came with the reward of one-day international status.
Oman and the United States had already sealed promotion heading into the final round robin matches.
Hosts Namibia clinched third today by scoring an imposing 396 against Hong Kong, before bowling their opponents out for 245.
It left Papua New Guinea and Canada vying for fourth, with the two teams facing tough tasks against Oman and the United States, respectively.
Papua New Guinea’s hopes appeared to be fading when they found themselves 32-5 at United Ground in Windhoek.
Kiplin Doriga and Sese Bau scored 65 and 80 runs, respectively, as they staged a stunning comeback to set Oman a target of 222 to win.
Oman, who had won their opening four matches, were then bowled out for just 76 with Nosaina Pokana taking five wickets.
Canada had set the United States a target of 256, but crucially needed to keep their rivals below 211 runs to stay ahead of Papua New Guinea on net run rate.
The Canadian team reduced the US to 198-9 but proved unable to take the final wicket as the remaining batsman edged closer to the decisive figure.
Congratulations to Namibia!— ICC (@ICC) April 26, 2019
Their 151 run win over Hong Kong means that they have gained ODI status 👏 pic.twitter.com/3QpjfXXXgK
A four from Nosthush Pradeep Kenjige in the final over saw the US move to 215 runs.
While it was enough for Canada to win by 40 runs, the score denied them fourth place in the table.
Papua New Guinea finished fourth with four points and a net run rate of -0.403, while Canada ended on the same points tally on a lower run rate of -0.415.
Oman, Namibia and the US will also receive one-day international status for the first time, while Papua New Guinea regained the status they lost last year.
They will participate in the new ICC Cricket World Cup League 2 for 2019-2021.
Canada and Hong Kong will drop down into the ICC Cricket World Cup Challenge League.
Tomorrow will see Oman and Namibia contest a final, while Papua New Guinea and the US will participate in a third-place play-off.
Canada and Hong Kong will hope to end on a high when they take part in a fifth-place match.