Changed to boolean index