core: Changing input to accept also sets, as might be also used.