Initial code for validation.