Add id field to output