Preventing the spread of infectious diseases