Updated managedObjectModel creation.