Using what may be a fundamental circuit architecture in animal brains, worms decide whether to roam around looking for food or stop in a patch of nutrients. The circuit feeds multiple streams of sensory information into a mutually inhibiting loop of just a few neurons to switch between the roaming or dwelling behaviors.