Fix swarm initialisation so it works