Use uint32_t instead of unsigned long.