What was the role of local leaders in organizing resistance before the battles?