Added getnodeList functon