Use int instead of size_t for -1