Steven Naismith fired an extra-time winner as Kilmarnock scraped past First Division Queen of the South in the second round of the CIS Cup.
Queens stunned the SPL side when Sean O'Connor poked the ball home following a goalmouth scramble.
The hosts missed two great chances to increase their lead before Grant Murray rose to head home the equaliser.
Queens' Michael Mullen missed another good chance before Naismith supplied an excellent finish to prevent a shock.
Queen of the South: Scott, McKenzie, Lauchlan, Henderson, Burns, Paton (Henry 61), Scally, O'Neil, Gibson, Weir (Mullen 68), O'Connor (Andy Thomson 78).
Subs Not Used: Corr, Callaghan.
Goal: O'Connor 49.
Kilmarnock: Smith, Greer, Frazer Wright, Grant Murray, Hay, Fowler, Stephen Murray (Johnston 63), Leven, Naismith, Nish (Di Giacomo 63), Wales (Fernandez 53).
Subs Not Used: Bell, Dodds.
Goals: Grant Murray 75, Naismith 113.
Ref: M McCurry