Changed some vars to size_t.