Fixed packet loss function...