Initial code to trait validation feature.