Added vertex and distance output.