Return ids to file writer.