Added Validator class.