Changed the node code so it also works on systems that have multiple