Changed everything to size_t.