Model Preparation Algorithm#