Added model building and generating scripts