Inverness Caledonian Thistle got themselves out of a sticky situation as they came from behind to beat Forfar Athletic 2-1 at Station Park.
While Forfar finished bottom of Group A, Inverness finished second but failed to reach the second round through the back door.
Marc Scott put Forfar ahead after Liam Polworth missed a penalty however George Oakley and John Baird ensured all three points left Station Park with the visitors.
Inverness had the first opportunity five minutes in when George Oakley fired straight into Marc McCallum’s arms.
Eddie Malone blasted over from a Mark Millar lay off with Riccardo Calder failing to threaten McCallum with his effort at the other end.
Ousman See saw his shot blocked for the Loons but the visitors had a great chance to go ahead in the 31st minute when Jamie Bain committed a foul inside the box.
Liam Polworth stepped up to take the spot kick but couldn’t beat the keeper with McCallum diving the right way to deny the midfielder.
Both keepers were called into action to deny Jim Lister and John Baird but See should have put Forfar ahead however the summer signing blasted over.
The Loons took the lead just three minutes after the break; David Cox’s cross found Lister and after his shot was parried and spun up, Marc Scott nodded in from a yard out.
Scott almost grabbed an assist a minute later when he laid the ball off for Millar to fire over the bar.
Within six minutes of going behind Inverness were ahead; eventually penetrating the Forfar defence as Oakley slotted home from 25 yards after a poor clearance while John Baird rifled past McCallum from close range.
Polworth forced an impressive stop from McCallum before Michael Travis cleared an Oakley shot off the line.
See had another chance for the Loons when he rose to meet a Cox cross but couldn’t keep the header down.
He then set up Malone who shot inches over the bar from just inside the box.
Malone saw an excellent volley saved by Ridgers in the final fifteen minutes as the visitors scraped past Forfar.
Forfar now look to their league campaign, starting at home to Airdrieonians next Saturday.
Forfar Athletic: McCallum, Travis, Bain, Malone, Munro, Mensing, Cox (Aitken 79), Millar (McBride 50), Lister, See, Scott
Subs not used: Kennedy, Gill, Warwick, Easton, King (gk)
Inverness Caledonian Thistle: Ridgers, Raven, Chalmers, Elsdon, Polworth, Draper, Baird (Bell 83), Vigurs, Oakley (Zschusschen 70), Calder (Mulraney 75), McKay
Subs not used: Cooper, MacDonald, Esson (gk)