Add id into array output