Added additional code. The NodeNetwork demo needs to be refactored.