Changed work with model