John Baird's double helped Raith Rovers overcome Cowdenbeath in the first round of the Ramsdens Cup.
Baird nodded Joe Hamill's cross into the bottom corner six minutes into the second half.
And Hamill was also the provider for the hosts' second, finding Baird with a pinpoint cross that the striker swept into the net.
Substitute Lewis Coult headed home from Dean Brett's cross to give Beath hope but Raith held on for victory.
McGurn, Donaldson, Murray, Ellis, Dyer, Walker, Williamson, Davidson (Thomson 46), Hamill, Baird, Brian Graham (Reynolds 76). Subs Not Used: Laidlaw, Callachan, Colin Wilson.
Baird 51, 77.
Bejaoui, Brett, Winter, Mbu,A damson, Morton, Cameron (Miller 84), Robertson, Linton (Milne 72), Ramsay (Coult 62), Stewart. Subs Not Used: Flynn, Armstrong.