Changed all sizes to size_t.