yellows to the stator, red to the positive terminal on battery you should put in a 20amp in-line fuse, green to battery negative, and black to the original switched live that fed the original alternator, if you don't have the original harness connect it to another switched live, i had this set up on my last XS, got mine from a chap in Wales that puts them together.