In the Middle Ages, the Church and the worldly authorities were closely related. Who added synods to church government?