Added output with original IDs