Broke swarm out into module.