 Husayn died not long after.Khalaf was now the sole uncontested amir of Sistan for the first time in twenty years.During the next several years he gained his reputation for being a great scholar and for encouraging learning within his realm.