When looking for food, the roundworm C. elegans searches the same area for up to 20 minutes before trying its luck at more distant locales. New research on the worm's brain explains how this behavior arises at the level of molecules and cells.