@tosti007 I will have to try again, but what I did was similar to what you suggested.Atleast I believe it was.
The thing that’s mainly bothering me is the fact, that the same code executed on its own and not automated within the node_helper is working fine.