FlaggingNode work

Should somewhat work now