Some changes in main model. v.1.3.1.2