Use unsigned long instead of uint32_t