Added the option to define the model file path.