Optimizing the model file