Added query execution option