Removed obsolete code in Model constructor that was producing several errors.