Fix depth and nodes, device_vector destruction still to be addressed.