For bacteria that swim, determining whether to stay the course or head in a new direction is vital to survival. A new study offers atomic-level details of the molecular machinery that allows swimming bacteria to sense their environment and change direction when needed.