Started implementing the triangulation query structure