Added niew field "repeat" and default for record_total