Moved the functions from the node topology part to the basic utilities functions