Peterhead progressed to the knockout stages of the Betfred Cup after defeating Dumbarton on penalties in a thrilling encounter at the Cheaper Insurance Direct Stadium.
Kevin Dzierzawski put the Blue Toon in front after 16 minutes but strikes from Robert Thomson and David Smith put the Championship side in front at the break.
They extended their lead three minutes after the restart when Fiacre Kelleher conceded a penalty for a foul on Donald McCallum and Ryan Stevenson netted from the spot.
But Leighton McIntosh pulled one back before the hour mark before Rory McAllister pulled his side back level after winning a penalty and slotting home from the spot.
With Dundee defeating Forfar Athletic 7-0 in the other group match, Peterhead required the bonus point available for a penalty shoot-out win to progress.
They looked certain to win after the Sons missed their opening three penalties but misses from Ryan Strachan, Jordon Brown and Fiacre Kelleher meant the shoot-out went to sudden death.
Peterhead goalkeeper Graeme Smith could have won it for the visitors after Dumbarton’s Amadou Kassarate had missed but he blazed over.
But when Craig Pettigrew missed Dumbarton’s 10th penalty, Nicky Riley made no mistake to ensure his side made it through to the knockout stages.