Now works and is tested for 10 nodes and +1000 values on local machine