Tracking code for entities to fix ghosting with entities.