Adding internal IDs