Maximizing Resilience