Sheffield Wednesday survived a late assault on their goal to beat Morecambe in the first round of the FA Cup.
The visitors took the lead in the 18th minute through Chris Lines, who curled a low effort inside the far post.
Chris O'Grady nodded in the Owls' second just after the break but Morecambe hit back through Laurence Wilson's 62nd-minute spot kick.
Gary Megson's side held on and are rewarded with a second-round tie against Aldershot or Maidenhead.
Wednesday, third in League One, and Morecambe, fifth in League Two, may be a division apart but the sides played out a close contest at the Globe Arena.
The visitor's opener came after a neat interchange between Lines and O'Grady on the edge of the box before Lines bent the ball into the bottom corner to score his first goal for the Owls.
Morecambe stayed competitive, sticking mostly to counter-attacking tactics, but the Owls were well on top throughout the first half.
The home side expressed themselves a little more freely after the break and Wilson clipped the top of the bar with a dipping drive in the 48th minute.
Morecambe's revival seemed to have been ended in the 52nd minute, when O'Grady nodded in James O'Connor's cross from the right.
But the hosts were back in with a chance 10 minutes later when Lines was penalised for handball and Wilson emphatically fired home the penalty.
Wednesday then survived as a Danny Carlton effort was ruled offside, and endured five agonising minutes of stoppage time to move into the second round.
VIEWS FROM THE DRESSING ROOM
Sheffield Wednesday manager Gary Megson told BBC Radio Sheffield:
"Given the circumstances, with the expectation of ourselves, I thought we got the most difficult tie of the round and they're a very good side.
"In the last five minutes I thought we did ever so well.
"[On the second round draw] Whichever team comes it will be a great occasion for them and the supporters. Those circumstances exist whoever we're playing. But we're at Hillsborough."