Fixed getNodeFromDevice being private and moved.