Changed the way flagging IDs are specified since submission IDs are not unique.