Last int reference replaced with std::size_t