Started attack function.