Fix bug with multiple IDs.
Add notes.