Run with id rather than separate methods for arrays and sets.