Re-arranged attack code