In a previous post I described the motor quitting abruptly. I originally thought it might be the side stand sensor. However it was the lean angle sensor which was incorrectly installed. Now, feeling rather foolish because I recently replaced the battery and I realized that it was I who did not correctly replace the sensor. It apparently was flopping about and would detect the bike to be on it's side when it was in fact upright. Thus it would promptly shut off the motor. This lesson cost me $99. Won't happen again.