Fixing potential integer overflow issues.