Added a better validation for mods in the model