We use 0-based indexing