Discuss the importance of flexibility in maintaining resilience.