Just bought 2007 mastiff with 3400 miles. First ride today about 30 miles into the ride bike lost all power( did notice a small back fire just prior to losing all power). Took off seat and could see all the lights on a black looking brain on the right side of bike below the battery area. Some nice guys pulled over a I borrowed a screw diver and dis-connected the battery and all the lights went off except a green and yellow. All power was restored and bike fired up. Headed back home about 20 miles, stopped and fueled up and shut bike off and no power when I turned on the ignition. Again all lights were on on the brain looking box. I turned the key off waited 30 mins and it wouldn't re-set. Finally I turned the key on and disconnected the battery and it re-set. Any idea? First time on here hopefully it made sense. Thanks guys