A new vaccine allows pneumonia-causing bacteria to colonize inside the body, springing into action only if the bacteria pose a threat.