League One Dunfermline knocked Premiership side Dundee out of the Scottish League Cup at East End Park.
Fayssal El-Bakhtaoui fired the Pars ahead early on.
Kane Hemmings struck to level matters shortly after the break but Joe Cardle's shot regained the lead for Dunfermline.
And another El-Bakhtaoui effort made sure of the win for Allan Johnston's side, who will find out their third-round opponents on Thursday.