How to catch a swarm of bees