'isValidDS' added to aggregate functions.