sentence1: This was resolved with the Ostrów Agreement -- Jogaila became the Grand Duke of Lithuania while Vytautas retained rights of an overlord .
sentence2: With the Ostrów agreement , this was decided -- Vytautas became the Grand Duke of Lithuania , while Jogaila retained the rights of an overlord .