Changed method used to print out nodes in the system