Make the math more resilient.