Hrm, I'm confused :-) You don't need both the old code and the new code. I'd remove all code playing with ```monitor_nodes```, and I'd only keep these 3 lines.