Corrected variable declarations from uint8 to uint32