be careful switching on and off an alt. field, it can act like a coil inducing a voltage spike on your ignition circuit. There is right and wrong ways to do it. Guess which way I came up with.
I scrolled up and I guessed which way you came up with but still do not know.