When I stripped the bike down it had a black wire with ring terminal on it but it didn't go anywhere, it was just cable tied off on the frame next to the indicator relay.

There is a black wire with ring terminal coming from the original regulator but originally this was located under one of the bolts on the air box support and it's not long enough to reach the bolt on the engine casing.
Any ideas?