Queen's Park overcame Dundonald Bluebell 3-1 in extra-time to book a Scottish Cup second-round home tie with Queen of the South.
Jai Quitongo fired the Spiders in front in the second half and then hit the crossbar with a header.
Craig Wedderburn forced in an equaliser at a free-kick late in regulation time.
Simon Murray struck amid heavy snow in the 100th minute and Louis Longridge's header trickled in to make the game safe for the League Two leaders.
Quitongo and Murray both hit the crossbar in the first half and Murray did so again at 2-1.
Ray McKinnon's Queen's Park will welcome Championship outfit Queen of the South to Hampden on the weekend of 9 January.