Writing to vtp