Use size_t for compatibility and to avoid warnings