How to Prevent a Pandemic