Adjust endpoint for queries