Switch from `==' to a list of ids