Start of flagging system.