Changing to size_t instead of int.