Minimizing the Effects of Disasters by Planning Ahead