 Mahmud had no intention of letting this assault go unpunished.He led his troops into Sistan in 1000 and trapped a surprised Khalaf, who was staying at a hill resort.Khalaf, lacking an army, had to pay an indemnity, put Mahmud's name before his own on his coins and place the Ghaznavid's name in the khutba.