Fix the rough running problem and so the Speedo decided to die on me.

I was ridding along on Sunday when I noticed the needle was jumping around a bit and when I accelerated hard it would take a while to catch up.
Anyone got any ideas what the problem is

These things are electrical right, so presumably it's either the stepper motor inside the dash or the gadget the measures the speed inside the gearbox

If it is the stepper motor, does anyone know if the dash is a sealed unit (ie can I buy a new motor and install it myself)?
Thanx