Adjusted to new inverse_select notation.