Made moveWithSpeed and followWithSpeed more stable.