Added arc_flg logic