Updated length to correct type "uint32_t" not int