Changed the way parameters are set outside the model file