Distance and speed working

Speed and distance are working in update.