Change unsigned long to uint32_t.