Speed calculation now on client side