#3192: Use existing functions to do validation.