Updates params and model