Rewrite recursive_dig, HUGE speed boost