Flickering or pulstating Headlights

The car has the relay installed and runs fine, except for the pulsating voltage. I have the old style regulator installed and the relay is installed per that diagram. Where I am confused is I now have five wires where there were four in the connector that replaced the ballast resistor. Should one the original wires be capped? Thanks again!