Researchers studying mouse brains identified the cells that encode pain’s unpleasantness.