Forward port customValidation stuff.