Added attack code.