Ported some of the Entity class