Text this: Collective Action in the Formation of Pre-Modern States