Introduced linked lists for flagging