(CNN) -- Argentina's Lucas Gonzalez Amorosino scored a dramatic late try to put his side on course for the quarterfinals of the Rugby World Cup with a dramatic 13-12 victory over Scotland in Wellington Sunday.
The Pumas now have only to beat minnows Georgia to qualify from Pool B while Scotland must score a comprehensive win over group leaders England to go through to the last eight.
Scotland led 12-6 with seven minutes remaining when Amorosino eluded four tackles to cross for the only try of the game.
Captain Felipe Contepomi converted the try to put his side ahead and they withstood a late Scottish rally which saw Dan Parks miss a drop goal attempt.
Scotland led 6-3 at half-time and then kicked two drop goals through Ruaridh Jackson and Parks as they looked headed for the quarterfinals until Amorosino's heroics.
Scotland coach Andy Robinson said his team were devastated by their narrow defeat.
"It's one lapse, 30 seconds of concentration that cost them a Test match," he told ITV Sport.
In other action Sunday, Ireland thrashed Russia 62-12 to stay top of Pool C, while Samoa beat Pacific rival Fiji 27-7 in Auckland in a match watched by over 60,000 fans.
Ireland, putting out a second string side, ran nine tries past Russia and will go into the quarterfinals as group winners if they beat Italy next weekend.
Samoa's win has left them with an outside chance of going through in their final pool game against champions South Africa.
Fly-half Tusi Pisi put them in command as he kicked 12 points to give them a 12-0 lead at the half and after the break they outscored Fiji two tries to one.