Added query to origin