Added segment query to space