Fixed inheritance and validation.