Added validation.