Second Division Peterhead needed extra time before moving into the second round of the CIS Insurance Cup after victory over Third Division Montrose.
Montrose opened the scoring after Craig Tully pushed Hugh Davidson in the box and Andy Rodgers fired in the penalty.
But new signing Bryan Gilfillan crossed for Bobby Linn to head home.
Montrose paid for Davidson's extra-time sending off for a foul on Stuart McKay as Martin Wood finished a fine solo run and Martin Bavidge added a third.
Montrose: Andrew Reid, Cumming (Phillip Reid 117), Higgins, McLeod, Fraser, Henslee (Watson 106), Donachie (Napier 66), Adam, Davidson, Rogers, Kerrigan.
Subs Not Used: Tawse, Fyfe. Sent Off: Davidson (99).
Booked: McLeod, Adam, Henslee, Napier, Cumming.
Goal: Rogers 25 pen.
Peterhead: Mathers, Calvin Shand, Tully, Perry, Cameron, Sharp (Youngson 106), Gibson (Bavidge 73), Buchan, Gilfillan, Linn (McKay 85), Wood.
Subs Not Used: Good, McCafferty.
Goals: Linn 60, Wood 108, Bavidge 115.
Ref: C Brown