Bagfile recording control