Changed uint32_t to int