If out_id == None => statistics please add a comment to explain it