Changed the size_t variables into int32 variables.