Implemented additional method for model validation.