Updated network loss logic.