Works on small number of nodes. Make bigger shell script