Use indexing instead of destructuring