Typo corrected
'isValidDS' made internal function.