Change instance type

Change uint8_t instance to uint32_t instance for whole project