Added attack in executecommand method