Smoother speed calculation