Adding template and model.