Pulsating Headlights

I actually ran a 10 gauge wire from the alternator case to the regulator mounting screw and it didn't help. Everything stabilized after I used a relay to feed the regulator my voltage was rock steady at 13.8 voutside and the pulsating/flickering headlights are now stable. Like I said I think that it has to do with dirty/worn ignition switch contacts.