Converting possible_values to work with sets of attributes