Added doc id to output.