Handling many-to-many relationships.