Dean Ashton and Steve Jones both found the net as Crewe sealed a place in round two of the Carling Cup with an unconvincing win over Wrexham at Gresty Road.
Brian Carey almost scored early in the match when but his header from six yards was directed close to Crewe goalkeeper Clayton Ince, who easily saved.
Striker Lee Jones also tested Ince with an ambitious effort from long distance.
It took Crewe until the 40th minute to create a decent opportunity, but Andy Dibble comfortably smothered Dave Brammer's attempt.
But Wrexham were caught out with 54 minutes gone when Crewe's forward line
finally clicked to earn a penalty.
Darren Ferguson ended a good attack by bringing down Ben Rix inside the area
and Ashton stepped up to calmly convert the spot kick.
Wrexham fought to get back into the match, but their luck deserted them when Hector Sam's brilliant volley crashed back off the woodwork.
The result was sealed when Jones steered home an audacious 35-yard lob with two minutes to go and Carey was then dismissed for a second bookable offence.
Crewe: Ince, Wright, Moses, Foster, Vaughan, Lunt, Brammer,
Cochrane, Rix, Jones, Ashton. Subs: Bankole, Varney, Robinson,
Wrexham: Dibble, Carey, Lawrence, Pejic, Carlos Edwards,
Paul Edwards, Whitley, Ferguson, Thomas, Llewellyn, Lee Jones.
Subs: Whitfield, Holmes, Morgan, Crowell, Sam.
Referee: Trevor Parkes (W Midlands).