Starting VAD tree code