Write the IDs