How to Avoid Extinction