Add unchecked blocks to avoid NumberOverflow exception when running in Debug