Two gene families point to the origin of the mollusk’s smarts.