Adam Rooney hit a first-half hat-trick as Aberdeen cruised past Daugava Riga in the first qualifying round of the Europa League.
Rooney took his tally over the two ties to five as the Dons won 3-0 in Latvia for an 8-0 aggregate victory to set up a second-round clash with Dutch side Groningen.
Aberdeen boss Derek McInnes brought in Ashton Taylor for his debut at left-back, allowing Hayes to move further up the park in place of the injured Peter Pawlett.
Andy Considine also came in with Russell Anderson rested. Niall McGinn came close after a good knockdown from Rooney, who opened the scoring in the 22nd minute.
His touch lifted the ball over the home goalkeeper after Hayes had crossed to the near post.
Jamie Langfield made a good stop from Emils Knapsis after a ball over the top caught the Dons out before Shay Logan fired just wide at the other end.
Rooney netted again in the 40th minute after home goalkeeper Janis Krumins missed Logan’s cross.
The forward completed his 23-minute hat-trick just before the break after great play from Hayes, who burst into the box and played the ball to the back post for Rooney to sweep home.
Hayes went off injured just after the hour mark with Cammy Smith coming on as Aberdeen played out the game in a quiet second half.
Nicky Low and 16-year-old midfielder Scott Wright came on as the Dons comfortably saw off Daugava’s attempts to force a consolation goal.