Leeds United finished their pre-season tour of Australia with a 2-1 victory over Western Sydney Wanderers.
The A-League outfit hosted Marcelo Bielsa's side to mark the opening of their new BankWest Stadium.
Youngster Mateusz Bogusz had fired Leeds ahead with a tidy finish after just nine minutes, before Kwame Yeboah hit back for the home side early into the second-half.
The game looked like it was heading for a draw, but up stepped Pablo Hernandez, who beat numerous Wanderers players before finding the top corner with seconds remaining on the clock.
You can watch the goal below:
"We missed a lot of chances to win the game. I think we deserved the win today," said Hernandez after the game.
"But this is football, sometimes you have chances and you miss them and after this it's difficult.
"They played good in defence but I continued to try to score the second goal until the end of the game and I am delighted that we achieved the goal.
"Obviously it's important for us to win games but what's more important now is the work because we need to work in the games now to arrive in good condition for the first game in the league.
"But always it's better when you win."