Changing const unsigned int size to size_t size.