Conor McKenzie was the late Linlithgow hero as his injury-time winner fired the Rose into the Scottish Cup second round.
The substitute slammed the ball home from 8 yards in the closing moments to seal a dramatic 2-1 win over Berwick Rangers in a fiery affair at Prestonfield.
The East of Scotland Premier Division hosts controlled much of the first half and were deservedly in front at the break after Connor McMullan had bundled home from close range on 15 minutes after Alan Sneddon headed back across goal.