Changed unsigned to std::size_t.