Node wait update

Adds method to wait for a node to get connected.