So last weekend I went riding and the bike ran fine for most of the ride. We ran through a stream crossing and the bike was still fine. Shortly after, the bike felt like I was running out of gas so I switched over to reserve but then it died. The bike started up again but as soon as I rolled on the throttle it would die. Then it was dead dead and I had to get towed out. Back at the shop, I tore apart the carb to make sure it wasn't the carb, then moved onto electrical. The bike had really weak spark so I changed the coil. Still the bike wouldn't fire then it randomly fired up after cranking for a while for a few seconds. I checked the resistance on the stator and the position pickup and they check out fine. I'm really stuck here. Its either the stator or the CDI, both of which are expensive to replace. Any tips on where to continue on?