 Grimoald then made an agreement with the Avars who invaded the duchy and killed Lupus.They then refused to withdraw and continued their raids until Grimoald himself intervened and managed to induce them to return to Pannonia.Grimoald installed Wechtar as the next duke, rather than Lupus' son Arnefrit.