Use a function to assign IDs in content