Make code more resilient.