Add attack code