Creating parameters for second round of flagging