Changed int -> size_t many places.