Added add and remove entity.