Keep track of entity IDs