The race loom has a sidestand plug? Bizarre!
Have you lokked over the wiring diagram for the bike? If you follow various lines, you'll be able to see what is and isn't needed by the PGM.
_________________
MC21SP Plaything
BMW F800GS Bumblebee
Triumph 9551 Daytona Big boys toy
FJ1100 Sporting relic
GTS1000 oddball