Added Parent to Model and Updated Generate Script