Gareth Griffiths bagged a hat-trick as Rochdale eased into next round of the LDV Vans trophy by beating Scarborough.
Griffiths opened the scoring with a neat finish after Gary Jones' shot was blocked, but Keith Gilroy levelled for the Seasiders on half-time.
Grant Holt restored Dale's advantage with 15 minutes to go when he headed home a Tony Gallimore free-kick.
Griffiths then headed in and netted his third from the spot after keeper Leigh Walker kicked Holt and was sent off.
Rochdale: Gilks, Evans, Griffiths, Burgess (Clarke 45), Gallimore, McCourt, Cooksey, Jones, Warner (Probets 73), Holt, Tait (McGivern 60).
Subs Not Used: Edwards, Bertos.
Goals: Griffiths 3, Holt 75, Griffiths 77, 90 pen.
Scarborough: Walker, Hotte, Cryan, Foster, Nicholson, Gilroy, Kerr (Lyth 59), Thompson, Pounder (Gill 84), Hackworth (Burton 76), Senior.
Subs Not Used: Horrigan, Foot.
Sent Off: Walker (90).
Booked: Senior, Hotte, Gilroy.
Goals: Gilroy 45.
Ref: E Ilderton (Tyne & Wear).