Uise uint32_t to test for a value going beyond UINT16_MAX.