Added ability to sample vertices to console.