Using swarm to find master