Setting up model.