Added ModelInstance field to Entity