Plus, do we need the indices? Can't the bool array be used instead?