Added calculation to model.