New VTN functions. Correct some errors