Add a function to assign IDs in content