Australia kept their faint hopes of reaching the Rugby World Cup knockout stages alive with an unconvincing 34-14 victory over minnows Portugal on Sunday.
Tries from forwards Richie Arnold, David Porecki, Angus Bell and Fraser McReight, and winger Marika Koroibete secured Australia a bonus point and a Pool C lifeline, while Portugal hit back through Pedro Bettencourt and Rafael Simoes.
The Wallabies can still reach the quarter-finals if Fiji lose to Portugal next week without a bonus point.
It was a poignant night for Wallaby prop James Slipper, who broke his country's record for the most caps at a World Cup.
Portugal showed a fearlessness to run the ball from the get-go, even from deep inside their own half.
Despite an early penalty from Australia's Ben Donaldson, Portugal deservedly took the lead when, playing with a penalty advantage, a slick backs move set centre Bettencourt free on the overlap to dive over in the corner.
Samuel Marques converted but moments later Bettencourt hit his opposite number Izaia Perese with a high tackle and was sent to the sin-bin.
Donaldson missed the resulting penalty but Australia soon made the extra man count with Rob Valetini offloading to lock Arnold to score next to the posts.
Portugal became ragged, giving away possession cheaply and Wallaby captain Porecki punished them again, touching down from the back of a short-range driving maul.
And before Portugal were back up 15 men again, prop Bell launched himself at the line from close in to score Australia's third try.
Once they had their full contingent back, the enterprising Portuguese were again the better side.
Portugal thought they had scored a richly deserved second try but Wallaby full-back Andrew Kellaway's last-ditched tackle forced flanker Nicolas Martins into touch before he dotted down, leaving Australia 24-7 up at the break.
Australia secured the attacking bonus point seven minutes into the second period after another Portugal penalty allowed them to kick deep into their opponents' 22, before Mark Nawaqanitawase was able to pop the ball off for flanker McReight to score.
Donaldson missed the conversion but Australia were well in control against their spirited opponents.
Yet Portugal continued to play with verve and panache and thought they had scored again when hooker Mike Tadjer was driven over, but he was ruled to have knocked on in the grounding.
Wallaby replacement hooker Matt Faessler was yellow-carded for an infringement in the driving maul but Portugal couldn't capitalise and knocked on again metres from the line.
But then Wallaby replacement centre Samu Kerevi was sin-binned for a forearm smash into Bettencourt's head and Australia were playing with 13 men.
Portugal kept coming and eventually they drove Australia back from a five-metre scrum and Rafael Simoes touched down.
Australia had the last word as Marika Koroibete ploughed over late on for their fifth try. (AFP)