 Mahmud responded by sending an advance force to secure Sistan.Khalaf resisted, barricaded himself in Taq and withstood a siege by the Ghaznavid force, so Mahmud decided to come personally in November 1002.Mahmud's army was reinforced by the townspeople of Zarang, eager to see the Saffarid defeated.