Tom Heathcote kicked 11 points as Bath secured a hard-fought victory in difficult conditions over Agen in the Amlin Challenge Cup.
Tom Heathcote and Raphael Lagarde exchanged early penalties before Paul James went over to give Bath the half-time advantage.
Heathcote extended the home side's lead further, before Uelenitoni Fono's converted try levelled the scores.
But Heathcote again struck to ensure the victory was Bath's.
Bath: Abendanon, Woodburn, Hipkiss, Williams, Agulla, Heathcote, McMillan, James, Mears, Wilson, Attwood, Caldwell, Skuse, Louw, Kosta.
Replacements: Eastmond for Abendanon (60), Vesty for Heathcote (64), Cook for McMillan (69), Beech for James (69), Dunn for Mears (74), Perenise for Wilson (77), Hooper for Caldwell (60), Mercer for Kosta (68).
Agen: Bataille, Agulla, Roux, Petre, Edmond-Samuel, Lagarde, Bales, Schwalger, Telefoni, Muller, Demotte, Lagrange, Erbani, Julien, Fono.
Replacements: Tian for Bataille (61), Tagotago for Agulla (69), Dupuy for Bales (67), Pitton for Schwalger (65), Janaudy for Telefoni (60), Afatia for Muller (60), Bastien for Demotte (41), Vaquin for Fono (63).
Ref: Dudley Phillips (RFU).