Basic working code from attack.