Changed unsigned ints to size_t