Change groupNegate to flags.groupNot