Implemented some parts of the model.